Hey,
What would be the best way of randomizing numbers without repeating for example..
Box 1 = 3
Box 2 = 4
Box 3 = 2
Box 4 = 5
Box 5 = 1
So 5 box's (Lets say $box[1] etc) must equal a number from 1 to 5 but can not be repeated in any of the other box's so it has to be unique.
Usually I can work this stuff out, but this has done my nut in after an hour trying to figure out a way! I think using "IF rand number is same as last box's then random again" is so unefficient, is there another way?
Thanks!