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
> 
> 
> 
> 

-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to