0209
Revision as of 03:28, 20 November 2024 by CharlesScarlet (talk | contribs)
- Description
- Gets a random int between a custom range and stores the result into a variable.
- Syntax
- 0209: generate_random_int_in_range [int] [int] store_to [var]
- Parameter
- [int]
- Min value
- [int]
- Max value
- [var]
- Variable to store random int value
This opcode generates a random integer within a given range. In GTA III, the generated value can be the max value while in VC and SA it can be the max value minus 1.
Keywords
cleo, random, rand, random number, random value, random int, random integer, range