Random player skins
#10

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.
Reply


Messages In This Thread
Random player skins - by martin149 - 03.01.2013, 15:24
Re : Random player skins - by [HRD]Mar1 - 03.01.2013, 15:26
Re: Random player skins - by martin149 - 03.01.2013, 15:27
Re : Re: Random player skins - by [HRD]Mar1 - 03.01.2013, 15:28
Re: Random player skins - by aslan890 - 03.01.2013, 15:42
Re: Random player skins - by dr.lozer - 03.01.2013, 16:03
Re: Random player skins - by martin149 - 03.01.2013, 16:43
Re: Random player skins - by martin149 - 05.01.2013, 16:51
Re: Random player skins - by Affan - 05.01.2013, 17:06
Re: Random player skins - by martin149 - 05.01.2013, 17:14

Forum Jump:


Users browsing this thread: 1 Guest(s)