View Single Post
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-27-2021 , 21:40   Re: GetRandomInt() beeing not random at all
Reply With Quote #3

I get around that problem by putting something like this in my code:

PHP Code:
int rnd GetRandomUInt(1,10);

int GetRandomUInt(int minint max)
{
    return 
RoundToFloor(GetURandomFloat() * (max min 1)) + min;

PC Gamer is offline