getting a random player
#9

My results won't always be faster, no, and in fact are slower at very low IDs. After reviewing your code though, I think the following scenario could result in an invalid ID.

There are three players connected, ID 0, 1, and 3. Because the max player ID is three, the random call could return ID 2, which isn't even connected.

I'd also say it's safe to assume using Iter_Random would be a good option.
Reply


Messages In This Thread
getting a random player - by thomas.. - 05.10.2010, 21:19
Re: getting a random player - by Scenario - 05.10.2010, 21:31
Re: getting a random player - by Gamer_Z - 05.10.2010, 21:37
Re: getting a random player - by bigcomfycouch - 05.10.2010, 21:39
Re: getting a random player - by Gamer_Z - 05.10.2010, 21:41
Re: getting a random player - by Tannz0rz - 05.10.2010, 21:49
Re: getting a random player - by bigcomfycouch - 05.10.2010, 22:03
Re: getting a random player - by Tannz0rz - 05.10.2010, 22:08
Re: getting a random player - by bigcomfycouch - 05.10.2010, 22:20
Re: getting a random player - by Tannz0rz - 05.10.2010, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)