Random Number Generator. - Node.js Number

Node.js examples for Number:Random Number

Description

Random Number Generator.

Demo Code



randomNumber = function(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
};

Related Tutorials