Added improved random number generator from SMLIB.

This commit is contained in:
Richard Helgeby
2011-06-17 14:44:51 +02:00
parent 778ebc65f3
commit 3776eca312
2 changed files with 25 additions and 1 deletions

View File

@ -203,7 +203,7 @@ InfectOnClientDisconnect(client)
}
// Get a random valid array index.
new randindex = GetRandomInt(0, eligibleclients - 1);
new randindex = Math_GetRandomInt(0, eligibleclients - 1);
// Get the client stored in the random array index.
new randclient = GetArrayCell(arrayEligibleClients, randindex);