note 71887 deleted from function.rand by nlopess
| From: | nlopess@php.net | Date: | Fri, 22 Dec 2006 20:24:55 +0000 |
| Subject: | note 71887 deleted from function.rand by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120862@lists.php.net to get a copy of this message | ||
Note Submitter: Meercat9
----
<?php
//You can Simulate Rolling of Dice
$roll1 = rand(1,6);
$roll2 = rand(1,6);
$total = ( $roll1 + $roll2 );
echo "You Rolled <b> $roll1 </b> & <b> $roll2 </b>, giving a
total of <b><i> $total </b></i>";
?>