Skip to content

Instantly share code, notes, and snippets.

@GeekaholicLin
Created August 29, 2016 13:54
Show Gist options
  • Save GeekaholicLin/7683977ace4b686481fbe8c01157d397 to your computer and use it in GitHub Desktop.
Save GeekaholicLin/7683977ace4b686481fbe8c01157d397 to your computer and use it in GitHub Desktop.
create a random number between min and max
function randomRange(myMin, myMax) {
 
  return Math.floor(Math.random()*(myMax-myMin+1)+myMin); 

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment