Difference between revisions of "LlFrandom"

From Second Life Wiki
Jump to navigation Jump to search
(Function Request submission)
 
m
Line 1: Line 1:
{{LSL_Function|func_id|mode=request|func_sleep=3.5
{{LSL_Function|func_id|mode=request|func_sleep=3.5
|func=llFrandom
|func=llFrandom
|func_desc=Automatically and indepedantly seeded, random float and '''can be used as a source of entropy''' ''(In the best sense of the word)''.
|func_desc=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].
|p1_type=float
|p1_type=float
|p1_name=mag
|p1_name=mag

Revision as of 21:21, 16 March 2007

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: float llFrandom( float mag );

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. Gambling)

Notes

LlFrand is a pseudo random number generator

Deep Notes

Signature

//function float llFrandom( float mag );