Generate random numbers (integer values) between 0 and MAX_RAND by calling rand() or mt_rand() without any arguments : rand « Math « PHP






Generate random numbers (integer values) between 0 and MAX_RAND by calling rand() or mt_rand() without any arguments

 
<?php 
echo "rand() = " . rand() . "\n"; 
echo "mt_rand() = " . mt_rand() . "\n"; 
?>
  
  








Related examples in the same category

1.Dice Rolling Simulator
2.int rand ( [int min, int max] ) returns random numbers
3.Random Images
4.Random Numbers