Groups | Blog | Home
all groups > flash actionscript > july 2006 >

flash actionscript : random integer question


Jimmathy
7/2/2006 2:07:16 PM
is it possible to set a minimum on a ex : random(7) sort of thing? so like the random number would be between 1 and 7?if so how?

thanks
kglad
7/2/2006 2:10:54 PM
yes. to generate random integers between minNum and maxNum, you can use:



AddThis Social Bookmark Button