mt_rand with no arguments : Random « Math « PHP
- PHP
- Math
- Random
mt_rand with no arguments
<?
print("Seeding the generator<BR>");
mt_srand((double)microtime() * 1000000);
print("With no arguments: " . mt_rand() . "<BR>");
print("With no arguments: " . mt_rand() . "<BR>");
print("With no arguments: " . mt_rand() . "<BR>");
?>
Related examples in the same category