randon amount generator jqury 10000 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 int javascript
//Returns random Int between 0 and 2 (included)
Math.floor(Math.random()*3)