Re: [PHP] Random Number Genertation

2002-12-18 Thread Somesh
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 f

Re: [PHP] Random Number Genertation

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.array-rand.php At 11:35 18-12-02 +, 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 -- PHP General Mailing List (http://www.

[PHP] Random Number Genertation

2002-12-18 Thread shaun
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php