Difference between revisions of "LlFrandom"
Jump to navigation
Jump to search
(Function Request submission) |
m |
||
(7 intermediate revisions by 5 users not shown) | |||
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 | ||
Line 7: | Line 7: | ||
|return_type=float | |return_type=float | ||
|return_text=that is "true" ''(In the best sense of the word)'' random number in the range [0.0,'''mag''') or ('''mag''', 0.0].<br/> The sign of '''mag''' matches the return | |return_text=that is "true" ''(In the best sense of the word)'' random number in the range [0.0,'''mag''') or ('''mag''', 0.0].<br/> The sign of '''mag''' matches the return | ||
|func_footer=This function is intended to be a source of entropy, which [[llFrand]] does not supply. | |||
|spec | |spec | ||
|caveats= | |caveats= | ||
|examples= | |examples= | ||
Asymmetric encryption or random game theory (Eg. | Asymmetric encryption or random game theory (Eg. [[Diffie-Hellman]]). | ||
|notes=[[ | |notes=[[LlFrandom]] is a [[Pseudo Random]] number generator. | ||
|helpers|related|also|notes}} | |helpers|related|also|notes}} |
Latest revision as of 16:33, 1 January 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
LSL Feature Request | |
The described function does not exist. This article is a feature request. |
Summary
Function: float llFrandom( float mag );REQUEST | Function ID |
3.5 | Forced 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 |
This function is intended to be a source of entropy, which llFrand does not supply.
Caveats
Examples
Asymmetric encryption or random game theory (Eg. Diffie-Hellman).
Notes
LlFrandom is a Pseudo Random number generator.