Random Number Generator

This section will demonstrate the use of random numbers as generated by a PHP script. You can use F5 to "roll" again, or, if you prefer, refresh the page.

You rolled 5! A pair of dice

The numbers are set to be random between 2 and 12. Since I am showing a pair of dice the possibility of rolling 1 would not be available. Each number should give you a different statement, all nonsense.

The number 5 means you must count all the bees in the hive. Careful!

 

This was fun, too! Eager to try the 'random' idea with images.



Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 42


Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 44


Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 46


Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 48


Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 50


Warning: show_source() has been disabled for security reasons in /home/rjoannej/public_html/php101/game2.php on line 52