random-to

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

Random-to

var random = require('random-to');
 
var x = random.from0to(10);
var y = random.from1to(10);
var z = random.from0to(-10);