random number generator in php

haxxor23

New Member
i wrote a php script to generate random values between 1 and 99999999999999999999 (that's 20 9's).The script is like this:\[code\]$maxq=20;for($i=1;$i<=$maxq;$i++) { $min=pow(10,$i); $max=(pow(10,$i)*10)-1; echo $min."<br>"; echo $max."<br>"; echo mt_rand($min,$max)."<br>----<br>";}\[/code\]but after 10 digit, php generates scientific notations like 1.0E+19 and the random numbers generated are a mess.I guess think is because of my hardware imitations (OS: Win XP 32 bit).What can i do to over come this? any help?Thanks.
 
Back
Top