Difference between revisions of "LlFrand"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
{| width="100%"
{| width="100%"
|-
|-
|{{LslFunction
|{{LslFunction|llFrand|8|0.0|10.0
|llFrand
|8
|0.0
|10.0
|r=float
|r=float
|rd=that is random and in the range [0,mag) or (mag, 0].
|rd=that is random and in the range [0,mag) or (mag, 0].

Revision as of 17:36, 25 January 2007

The correct title of this article is llFrand. The initial letter is shown capitalized due to technical restrictions.


float llFrand( float mag );

8 Function ID
0.0 Delay
10.0 Energy

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

• float mag – Any valid float value

Specification

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

Caveats

Examples

<lsl> </lsl>

Helper Functions

<lsl> </lsl>

See Also

Notes