natives.GENERATE RANDOM FLOAT IN RANGE: Difference between revisions
Jump to navigation
Jump to search
(Add ScriptItem documentation from GTA VC SCM decompile) |
(Add ScriptItem documentation from GTA VC SCM decompile) |
||
| Line 4: | Line 4: | ||
|type = function | |type = function | ||
|name = natives.GENERATE_RANDOM_FLOAT_IN_RANGE | |name = natives.GENERATE_RANDOM_FLOAT_IN_RANGE | ||
|parameters = | |parameters = float min, float max | ||
|parameter1 = | |parameter1 = float min Minimum corner of the area. | ||
|parameter2 = | |parameter2 = float max Maximum corner of the area. | ||
|usage = | |usage = generates a random floating-point number between two values | ||
|return1 = void | |return1 = void | ||
|returnFail1 = void | |returnFail1 = void | ||
}} | }} | ||
Latest revision as of 09:15, 12 June 2026
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.GENERATE_RANDOM_FLOAT_IN_RANGE(float min, float max)
The natives.GENERATE_RANDOM_FLOAT_IN_RANGE function is used to generates a random floating-point number between two values.
Parameters
| 1) | float | min | Minimum corner of the area. |
| 2) | float | max | Maximum corner of the area. |
Return
| void | This function doesn't return a value. |
Notes
There aren't any notes for this function.
Examples
There aren't any examples for this function.
Compatibility
There isn't any compatibility information for this function.