Re: Random Number Genertation
| From: | Somesh | Date: | Wed, 18 Dec 2002 11:41:08 +0000 |
| Subject: | Re: Random Number Genertation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128697@lists.php.net to get a copy of this message | ||
Hi shaun,
Store all those numbers in an array and use the function
array_rand.
On Wed, 18 Dec 2002, shaun wrote:
> Hi,
>
> Say i have a set of non sequential numbers for example: 1 3 8 12 13 16 19
> 21.
>
> How can i get php to take a random number from this set?
>
> Thanks for your help
>
>
>
>
--