Forum Discussion
karkadil
13 years agoValued Contributor
This JScript function will generate a random integer within a given interval
function randInt(min, max)
{
return Math.round(Math.random()*(max-min)+min)
}
method Math.random() returns a random number between 0 and 1
function randInt(min, max)
{
return Math.round(Math.random()*(max-min)+min)
}
method Math.random() returns a random number between 0 and 1
Related Content
Recent Discussions
- 12 hours agoMW_Didata