PHP > 1 to 6 rand() > Go!

Associate
Joined
8 Aug 2008
Posts
302
Hi guys

Bit of an afternoon head fuddle, basically I've got 6 items and 3 spaces, so I want to randomly generate 3 numbers from 1 to 6 with no repeats, bang them into an array then use those to pull out the items corresponding to the numbers.

Help! Thanks :D
 
Back
Top Bottom