Category:LSL Needs Example
Revision as of 10:44, 8 August 2012 by Strife Onizuka (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Articles in this category need examples written for them. To do that set the 'examples' value equal to a multiline string.
Example: llFrand (the order of the parameters in the definition has no effect on the rendering).
{{LSL_Function |sort=Frand |func=llFrand |func_id=8 |func_sleep=0.0 |func_energy=10.0 |p1_type=float |p1_name=mag |p1_desc=Any valid float value |return_type=float |return_text=that is pseudo random number in the range [0.0,mag) or (mag, 0.0]. |spec=returns a pseudo random number in range [0.0, mag) or (mag, 0.0], depending upon the sign of mag. |caveats |examples=<lsl>default { touch_start(integer total_number) { // When touched, say "Heads" with probability 0.5, // otherwise, say "Tails." if ( llFrand(1.) < .5) llSay(0, "Heads"); else llSay(0, "Tails"); } }</lsl> |func_helpers |also |notes= The random number generator is not a source of entropy. The sequence of random numbers are shared across the entire process, and not independently seeded. Therefore, the pseudo random number generation is not suitable for any application which requires completely predictable or completely unpredictable results. |cat1=Math |cat2 |cat3 }}
Pages in category "LSL Needs Example"
The following 53 pages are in this category, out of 659 total.
(previous page) (next page)A
- LlAdjustDamage
- AGENT IN AIR
- AGENT LIST PARCEL
- AGENT LIST PARCEL OWNER
- AGENT LIST REGION
- AGENT ON OBJECT
- AGENT SCRIPTED
- AGENT SITTING
- ANIM ON
- ATTACH AVATAR CENTER
- ATTACH BACK
- ATTACH BELLY
- ATTACH CHEST
- ATTACH CHIN
- ATTACH FACE JAW
- ATTACH FACE LEAR
- ATTACH FACE LEYE
- ATTACH FACE REAR
- ATTACH FACE REYE
- ATTACH FACE TONGUE
- ATTACH GROIN
- ATTACH HEAD
- ATTACH HIND LFOOT
- ATTACH HIND RFOOT
- ATTACH HUD BOTTOM
- ATTACH HUD BOTTOM LEFT
- ATTACH HUD BOTTOM RIGHT
- ATTACH HUD CENTER 1
- ATTACH HUD CENTER 2
- ATTACH HUD TOP CENTER
- ATTACH HUD TOP LEFT
- ATTACH HUD TOP RIGHT
- ATTACH LEAR
- ATTACH LEFT PEC
- ATTACH LEYE
- ATTACH LFOOT
- ATTACH LHAND
- ATTACH LHAND RING1
- ATTACH LHIP
- ATTACH LLARM
- ATTACH LLLEG
- ATTACH LSHOULDER
- ATTACH LUARM
- ATTACH LULEG
- ATTACH LWING
- ATTACH MOUTH
- ATTACH NECK
- ATTACH NOSE
- ATTACH PELVIS
- ATTACH REAR
- ATTACH REYE
- ATTACH RFOOT
- ATTACH RHAND