LlFrand
From Second Life Wiki
(Redirected from LSL llFrand)
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Contents |
Description
Function: float llFrand( float mag );| 8 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a float that is pseudo random number in the range [0.0,mag) or (mag, 0.0].
The sign of mag matches the return.
| • float | mag | – | Any valid float value |
Specification
returns a pseudo random number in range [0.0, mag) or (mag, 0.0], depending upon the sign of mag.
Useful Snippets
Pseudo-random_Number_Generator - Suitable for apps which require repeatable results that feel random.
Notes
The random number generator is not a source of entropy.
The sequence of random numbers are shared across the entire process, and not independently seeded. Therefore, the pseudo random number generation is not suitable for any application which requires completely predictable or completely unpredictable results.

