Revert "Fixing a bug with the redone PRNG"
This reverts commit 75970023b7
.
This commit is contained in:
@@ -18,7 +18,7 @@ short get_ran (short times,short min,short max){
|
||||
if(max < min) max = min;
|
||||
|
||||
for (i = 1; i < times + 1; i++) {
|
||||
srand(GetTickCount() + rand());
|
||||
srand(GetTickCount());
|
||||
store = rand();
|
||||
to_ret += min + (store % (max - min + 1));//min + (((store + 32767) * (max - min + 1)) / 65536);
|
||||
}
|
||||
|
Reference in New Issue
Block a user