public
Created

  • Download Gist
A-better-random-number.js
JavaScript
1 2 3
function rand(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.