Difference between revisions of "0098"
Jump to navigation
Jump to search
Junior Djjr (talk | contribs) m |
Junior Djjr (talk | contribs) m |
||
Line 8: | Line 8: | ||
}} | }} | ||
− | This opcode only returns a fixed range of "0.0" and "1.0". To return a custom range, use [[0208]] instead. | + | This opcode gets a random float between 0.0 and 1.0 and stores the result into a variable. It only returns a fixed range of "0.0" and "1.0". To return a custom range, use [[0208]] instead. |
== Keywords == | == Keywords == | ||
random, rand, random number, random value | random, rand, random number, random value |
Latest revision as of 12:04, 2 August 2017
- Description
- Gets a random float between 0.0 and 1.0 and stores the result into a variable.
- Syntax
- 0098: generate_random_float [var]
- Parameter
- [var]
- Variable to store random float value
This opcode gets a random float between 0.0 and 1.0 and stores the result into a variable. It 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