Click to See Complete Forum and Search --> : [RESOLVED] SIMPLE - Random number generation


mayooresan
04-09-2008, 08:36 AM
I know how to create a random number but my problem is I need to create a random number within the range I specified.

for example: I need to create a random number between 1-100.

CAn anyone help me?

shank
04-09-2008, 08:58 AM
Hi..
Try this out..

$i_randomNumber = rand(1, 100);

mayooresan
04-09-2008, 09:18 AM
Wow.. it's working...
thanks alot shank!!