advanced code snippet search
petrafull on 10/27/09
10/27/09 12:35pm
<?php srand(microtime()*1000000); $random_number= rand(1,100);?>
Report this snippet Tweet
Or, for a true random number, read from /dev/random or mt_rand() (which is 3 times faster than rand)
Comment:
You need to login to post a comment.
Or, for a true random number, read from /dev/random or mt_rand() (which is 3 times faster than rand)