dynamic-random-number-generator
v1.1.4
Published
A better Math.random()
Downloads
18
Readme
dynamic-random-number-generator
This module leverages the node crypto module to generate random integers within a range.
The crypto module uses /dev/random and /dev/urandom to produce random bytes on unix-y systems.
##usage
React
var random = require('dynamic-random-number-generator')
console.log( random(50, 10) ) // random integer between 10 and 50
React Native ES6
import random from 'dynamic-random-number-generator';
console.log( random(50, 10) ) // random integer between 10 and 50