Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Hello. What is the result of random(-1)? Will it return random value from 0 to MAX_INT - 2? Or what?
Posts: 1,223
Threads: 5
Joined: Sep 2011
Reputation:
0
[08:48:42] Negative Random Test #1: 1570445058
[08:48:42] Negative Random Test #2: 127631151
[08:48:42] Negative Random Test #3: 2035083621
[08:48:42] Negative Random Test #4: 2042455975
[08:48:42] Negative Random Test #5: 1510580053
for(new i=1; i < 6; i++) printf("Negative Random Test #%i: %i", i, random(-1));
Posts: 2,593
Threads: 34
Joined: Dec 2007