Random with negative value
#1

Hello. What is the result of random(-1)? Will it return random value from 0 to MAX_INT - 2? Or what?
Reply
#2

[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));
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=292813
Reply
#4

Thanks Jeff
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)