tessl install tessl/npm-ulid@3.0.0A universally-unique, lexicographically-sortable, identifier generator
Agent Success
Agent success rate when using this tile
78%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.34x
Baseline
Agent success rate without this tile
58%
Build a utility that validates and reports on the quality of random number generators available in different JavaScript environments.
Your utility should provide functionality to:
The utility should work correctly across different JavaScript environments (Node.js, browsers, etc.) and should automatically adapt to use the most appropriate random number generator available.
@generates
/**
* Validates the random number generator and returns a quality report.
*
* @param {number} sampleCount - Number of random samples to generate for validation (default: 1000)
* @returns {Object} Report object with validation results
* @returns {number} return.samples - Number of samples generated
* @returns {boolean} return.valid - Whether all samples are in range [0, 1)
* @returns {number} return.min - Minimum value found
* @returns {number} return.max - Maximum value found
*/
function validateRNG(sampleCount = 1000) {
// IMPLEMENTATION HERE
}
module.exports = { validateRNG };Provides cross-environment random number generation detection
@satisfied-by