RE: [PHP] randomize?
| From: | David Freeman | Date: | Sat, 11 May 2002 00:34:57 +0000 |
| Subject: | RE: [PHP] randomize? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97046@lists.php.net to get a copy of this message | ||
> I have a group table with 16 items, and I want them to be
> randomly put in 4 different groups, with 4 in each group,
> I've seen the $rand(x,x) thing, but is there any way to
> limit to 4 in each group without 47839 rows of code? :P
Wouldn't you just randomise all 16 items and take them on at a time to
fill your table?
CYA, Dave