Noffica
8/7/2015 - 9:21 PM

Generate a random integer

Generate a random integer

function getRandom(min, max) {
    return min + Math.floor(Math.random() * (max - min + 1));
}