I'd like to know how random numbers are implemented in Warcraft 3.
Tried searching and found a python script, however when running it I get a different result using the same seed (10) and low/highbound (0~100) (result was 43 in python (3.9.0), 55 in wc3 (1.31)).
I also found the decompiled code, but it's missing the SetRandomSeed and table, so can't use that either.
Does anyone know where to find a working implementation?
Tried searching and found a python script, however when running it I get a different result using the same seed (10) and low/highbound (0~100) (result was 43 in python (3.9.0), 55 in wc3 (1.31)).
I also found the decompiled code, but it's missing the SetRandomSeed and table, so can't use that either.
Does anyone know where to find a working implementation?