[PHP] Randomize an array?

2005-03-07 Thread Brian Dunning
I have a Magpie RSS feed in an array, and I want to output it in random order. What's the best (fastest) way to do this? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] randomize etc?

2002-08-01 Thread Kurth Bemis (List Monkey)
At 08:19 PM 8/1/2002 +0200, Hawk wrote: try using explode then walk through the array that explode makes :-) does that help? ~kurth >I'm trying to make a small script that I can use for randomizing teams and >stuff, I have one field where I enter how many teams, one for how many in >each team,

[PHP] randomize etc?

2002-08-01 Thread Hawk
I'm trying to make a small script that I can use for randomizing teams and stuff, I have one field where I enter how many teams, one for how many in each team, and a to write down all the players in. This is where my brain stopped working, first I was thinking about using split, but I don't know

RE: [PHP] randomize?

2002-05-10 Thread David Freeman
> 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 the

[PHP] randomize?

2002-05-10 Thread Hawk
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 HÃ¥kan -- PHP General Mailing List (http://www.php.net/) To unsubs