Difference between revisions of "0208"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
Line 11: Line 11:
 
| p3d        = Variable to store random float value
 
| p3d        = Variable to store random float value
 
}}
 
}}
 
This opcode gets a random float between a custom range and stores the result into a variable.
 
  
 
== Keywords ==
 
== Keywords ==
 
cleo, random, rand, random number, random value, range
 
cleo, random, rand, random number, random value, range

Latest revision as of 12:08, 2 August 2017

GTA III Vice City San Andreas GENERATE_RANDOM_FLOAT_IN_RANGE


Description
Gets a random float between a custom range and stores the result into a variable.
Syntax
0208: generate_random_float_in_range [float] [float] store_to [var]
Parameter
[float]
Min value
[float]
Max value
[var]
Variable to store random float value

Keywords

cleo, random, rand, random number, random value, range