Sha256: f83349a0942d4edc857f7c3395bb03fc5332ed83a8bcf8c80c9e8e210381f767
Contents?: true
Size: 464 Bytes
Versions: 69
Compression:
Stored size: 464 Bytes
Contents
/** * Just a wrapper to Math.random. No methods inside mout/random should call * Math.random() directly so we can inject the pseudo-random number * generator if needed (ie. in case we need a seeded random or a better * algorithm than the native one) */ function random(){ return random.get(); } // we expose the method so it can be swapped if needed random.get = Math.random; module.exports = random;
Version data entries
69 entries across 69 versions & 2 rubygems