random-to

Give me a random integer from [0|1] to n

npm install random-to
1 downloads in the last week
11 downloads in the last month

Random-to

var random = require('random-to');

var w = random.from0upto(10); // 0 - 9
var x = random.from0to(10); // 0 - 10
var y = random.from1to(10); // 1 - 10
var z = random.from0to(-10); // -10 - 0
npm loves you