Javascript Math getRandBetween(lo, hi)

Description

Javascript Math getRandBetween(lo, hi)




function getRandBetween(lo, hi) {
 return parseInt(Math.floor(Math.random()*(hi-lo+1))+lo);
}



PreviousNext

Related