Skip to content

Instantly share code, notes, and snippets.

@CYBAI CYBAI/randomInt.js
Last active Aug 29, 2015

What would you like to do?
Get random value between two values
* This function generates a random Integer between two numbers min and max.
function (min, max) {
return Math.floor(Math.random() * max) + min;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.