05.01.2013, 17:14
I am now trying to implement the Fisher-Yates Shuffle algorithm... You will hear from thos soon...
I all is very nice but let me explain again...
Whar i want is when somebody connects, they get the default class-selection options, but instead of showing them in a fixed order to erveryone, i want to show them in random order.
So if my classes are 1,2 and 3 for example, everybody will use 1 in the default selection. What i want is making the options random, so everybody will be different but will still have a choice.
So what a basically need is a method to shuffle an array, just like the php shuffle function.
I all is very nice but let me explain again...
Whar i want is when somebody connects, they get the default class-selection options, but instead of showing them in a fixed order to erveryone, i want to show them in random order.
So if my classes are 1,2 and 3 for example, everybody will use 1 in the default selection. What i want is making the options random, so everybody will be different but will still have a choice.
So what a basically need is a method to shuffle an array, just like the php shuffle function.