- Opcode: 0x0E8
- Short name: RND
- Long name: Random
Argument
none
Stack
none
Description
Writes a random number in the range [0-255] into temp variable 0 (the entity’s I[0] result register at +320). Takes no stack arguments.
PC handler: SCRIPT_RND.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_RND | 0x51D8D0 | Field script opcode handler (verified IDA function) |