how to do a math.random in javascript code example
Example 1: javascript get random number
// Returns a number between min and max
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}
Example 2: random number in js
Math.random() returns a random number in [0,1)