Get random In Range - Node.js Number

Node.js examples for Number:Random Number

Description

Get random In Range

Demo Code


exports.randomInRange = function (from, to) {
    return Math.floor(Math.random() * (to - from)) + from;
};

Related Tutorials