Skip to content

Instantly share code, notes, and snippets.

@pavenuto
Created April 18, 2011 17:52
Show Gist options
  • Save pavenuto/925794 to your computer and use it in GitHub Desktop.
Save pavenuto/925794 to your computer and use it in GitHub Desktop.
jQuery.extend({
random: function(X) {
return Math.floor(X * (Math.random() % 1));
},
randomBetween: function(MinV, MaxV) {
return MinV + jQuery.random(MaxV - MinV + 1);
}
});
$.randomBetween(10,100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment