Assigning the number to a player
#2

Put them in an array, shuffle the array and then assign sequentially. Here's an implementation in C++, but shouldn't be too hard to adapt to Pawn: http://www.geeksforgeeks.org/shuffle-a-given-array/
Reply


Messages In This Thread
Assigning the number to a player - by kamiliuxliuxliux - 21.12.2014, 17:17
Re: Assigning the number to a player - by Vince - 21.12.2014, 17:57
Re: Assigning the number to a player - by kamiliuxliuxliux - 21.12.2014, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)