To generate a random number between 0 and 100 do this:

srand((double)microtime()*1000000);
echo rand(0,100);

How to generate a random number in PHP

Leave a Reply

Your email address will not be published.

24 − = fifteen