LlFrandom

From Second Life Wiki

Jump to: navigation, search
Image:Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Contents

Description

Function: float llFrandom( float mag );
REQUEST Function ID
3.5 Delay
Energy

Automatically and indepedantly seeded, random float and can be used as a source of entropy (In the best sense of the word) in the range [0.0,mag) or (mag, 0.0].

Returns a float that is "true" (In the best sense of the word) 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

Caveats

  • This function causes the script to sleep for 3.5 seconds.

Examples

Asymmetric encryption or random game theory (Eg. Diffie-Hellman).

Notes

LlFrandom is a Pseudo Random number generator.

Personal tools