0098

From GTAMods Wiki
Revision as of 11:05, 2 August 2017 by Junior Djjr (talk | contribs) (Created page with "{{OpCode | games = {{Icon|t}} | command = GENERATE_RANDOM_FLOAT | description = Gets a random float between 0.0 and 1.0 and stores the result into a variable. | synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas GENERATE_RANDOM_FLOAT


Description
Gets a random float between 0.0 and 1.0 and stores the result into a variable.
Syntax
0098: [var1] = random_float_in_ranges_0.0_to_1.0
Parameter
[var1]
Variable to store random float value

This opcode only returns a fixed range of "0.0" and "1.0". To return a custom range, use 0208 instead.

Keywords

random, rand, random number, random value