/ Published in: JavaScript

Simple function to return a value between the minValue and the maxValue.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Random integer between function randomIntegerBetween(minValue,maxValue){ return Math.floor(Math.random() * (maxValue - minValue + 1)) + minValue; }
Comments
