0099

From GTAMods Wiki
Revision as of 11:26, 2 August 2017 by Junior Djjr (talk | contribs) (Created page with "{{OpCode | games = {{Icon|t}} | command = GENERATE_RANDOM_INT | description = Gets a random integer between 0 and 32767 (SA) / 65535 (III & VC) and stores the result...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas GENERATE_RANDOM_INT


Description
Gets a random integer between 0 and 32767 (SA) / 65535 (III & VC) and stores the result to a variable.
Syntax
0099: generate_random_int [var]
Parameter
[var]
Variable to store random int value

This opcode only returns a fixed range of "0" and "32767" / "65535". To return a custom range, use 0209 instead.

Keywords

random, random int, random number, random value