Re: randomize ??
| From: | Antaeogo | Date: | Thu, 16 Jan 2003 08:24:56 +0000 |
| Subject: | Re: randomize ?? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17900@lists.php.net to get a copy of this message | ||
<?php
rand(0, 10);
?>
"0" being the lower limit, "10" being the upper.
You should read into the function srand() at php.net
(type "srand" into the search input field - top right).
At 09:17 AM 1/16/2003 +0100, Aidal wrote:
>Hi NG.
>
>Can anyone tell me how to make a random number from a limiter like
>"randomize(10);" or somthing like that?
>It seems that the function "gmp_ramdom()" doesn't work.
>I get "Fatal error: Call to undefined function: gmp_random()" if I try to
>use it.
>
>Can anyone help please...
>
>/Aidal
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php