LlFrand: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
No edit summary
Strife Onizuka (talk | contribs)
No edit summary
Line 8: Line 8:
|p1_desc=Any valid float value
|p1_desc=Any valid float value
|return_type=float
|return_type=float
|return_text=that is random and in the range [0,mag) or (mag, 0].
|return_text=that is random and in the range [0.0,mag) or (mag, 0.0].
|spec=returns random number in range [0,mag) or (mag, 0]; depending upon the sign of mag.
|spec=returns random number in range [0.0, mag) or (mag, 0.0]; depending upon the sign of mag.
|caveats
|caveats
|examples
|examples

Revision as of 18:37, 25 January 2007

   Outdated templated used

Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.

Summary

Function: float llFrand( float mag );
0.0 Forced Delay
10.0 Energy

Returns a float that is random and in the range [0.0,mag) or (mag, 0.0].

• float mag Any valid float value

Specification

returns random number in range [0.0, mag) or (mag, 0.0]; depending upon the sign of mag.

Examples

Deep Notes

Signature

function float llFrand( float mag );