I'm using the following code
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
to come up with a random number. However, this is not giving me a random distribution. Does anyone know a better way to come up with a random number in javascript?