chris-ELM
11/2/2013 - 8:44 PM

random value between two numbers

random value between two numbers

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