jeremy-m
1/16/2014 - 7:55 PM

Javascript : random number from X to Y

Javascript : random number from X to Y

function randomFromInterval(from,to)
{
    return Math.floor(Math.random()*(to-from+1)+from);
}