View Single Post
  #50 (permalink)  
Old 04-29-2008, 04:19 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: Mathematical functions in PHP

Hi,

mt_srand()

Note: In PHP 4.2.0 and later, there is no need to seed the random generator with mt_srand(). This is done automatically.

Tip: The greater the randomness of the seed, the more random number you'll get. A suitable number to seed this function with, is mktime().
__________________
Regards,
Senraj.A
Reply With Quote