Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2016 02:51
What would you like to do?
rand(min, max){
var offset = min;
var range = (max - min) + 1;
var randomNumber = Math.floor( Math.random() * range) + offset;
return randomNumber;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment