View Single Post
  #49 (permalink)  
Old 04-29-2008, 04:17 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,

In this example we will seed the random number generator:

PHP Code:
mt_srand(mktime());
echo(
mt_rand()); 
The output of the code above could be:

1132656473
__________________
Regards,
Senraj.A
Reply With Quote