note 71887 added to function.rand
| From: | Meercat9 at osu1 dot php dot net | Date: | Thu, 21 Dec 2006 08:24:08 +0000 |
| Subject: | note 71887 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120818@lists.php.net to get a copy of this message | ||
<?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>";
?>
----
Server IP: 66.163.161.117
Probable Submitter: 124.183.235.122
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- https://master.php.net/note/edit/71887
Del: integrated -- https://master.php.net/note/delete/71887/integrated
Del: useless -- https://master.php.net/note/delete/71887/useless
Del: bad code -- https://master.php.net/note/delete/71887/bad+code
Del: spam -- https://master.php.net/note/delete/71887/spam
Del: non-english -- https://master.php.net/note/delete/71887/non-english
Del: in docs -- https://master.php.net/note/delete/71887/in+docs
Del: other reasons-- https://master.php.net/note/delete/71887
Reject -- https://master.php.net/note/reject/71887
Search -- https://master.php.net/manage/user-notes.php