/ Published in: JavaScript
random integer between two numbers
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function randomIntBetween(min, max) { return Math.round(Math.random() * (max - min) + min); } // randomIntBetween(1,100);