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