Difference between revisions of "LlFrand"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{lowercase|llFrand}}
{{LSLFunctionAll
__NOTOC__
|func=llFrand
 
|func_id=8
{| width="100%"
|func_sleep=0.0
|-
|func_energy=10.0
|{{LslFunction|llFrand|8|0.0|10.0
|p1_type=float
|r=float
|p1_name=mag
|rd=that is random and in the range [0,mag) or (mag, 0].
|p1_desc=Any valid float value
|p1=mag
|return_type=float
|p1t=float
|return_text=that is random and in the range [0,mag) or (mag, 0].
|p1d=Any valid float value
|spec=returns random number in range [0,mag) or (mag, 0]; depending upon the sign of mag.
|caveats
|examples
|func_helpers
|also
|notes
}}
}}
|-
|
<div id="box">
== Specification ==
<div style="padding: 0.5em">
returns random number in range [0,mag) or (mag, 0]; depending upon the sign of mag.
</div>
</div>
|-
|
<div id="box">
== Caveats ==
<div style="padding: 0.5em">
</div>
</div>
|-
|
<div id="box">
== Examples ==
<div style="padding: 0.5em">
<lsl>
</lsl>
</div>
</div>
|-
|
<div id="box">
== Helper Functions ==
<div style="padding: 0.5em">
<lsl>
</lsl>
</div>
</div>
|-
|
<div id="box">
== See Also ==
<div style="padding: 0.5em">
</div>
</div>
|-
|
<div id="box">
== Notes ==
<div style="padding: 0.5em">
</div>
</div>
|}


[[Category:LSL_Functions]]
[[Category:LSL_Functions]]
[[Category:LSL_Math]]
[[Category:LSL_Math]]

Revision as of 18:36, 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 );

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.

Examples

Deep Notes

Search JIRA for related Issues

Signature

function float llFrand( float mag );