Re: problems with random again

From: Date: Fri, 02 Aug 2002 04:44:48 +0000
Subject: Re: problems with random again
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110775@lists.php.net to get a copy of this message
Hi, Friday, August 2, 2002, 5:03:19 AM, you wrote: H> Is there some easy way to make rand() only use each number once in a loop, H> to avoid getting the same values more than once? H> Håkan Have a look at shuffle() it may do what you want -- regards, Tom

« previous php.general (#110775) next »