DrawCreateRandom
function · glue · primitive
- Address
0x4702d0· 229 bytes, up to0x4703b4- Signature
uint32_t __fastcall (int32_t n)- Meaning
- Advances the shared random state and returns a draw in [0, n), or 0 with no draw for n of 0 or less
- Confidence
- verified, proof one
- Finding
- glue/create#range-draws
Finding: Range draws in glue: character create
A draw in [0, n) advances the shared state 0x882664 exactly as 0x4531e0 does and returns
the high dword of n times the new accumulator. An n of 0 or less, signed, returns 0 and
leaves the state alone. It is seeded with 0 at load and with the clock in InitializeGlobal, and
many systems draw from it.
The derivation is in the doc.
Callers 2
- DrawCreateRaceAndSex glue
- DrawCreateCustomizations glue
Callees 1
- MulHigh32 cmath
Calls and jumps by a bare address, from tables/calls.tsv.