Difference between revisions of "Category:LSL Needs Example"

From Second Life Wiki
Jump to navigation Jump to search
m (Fixed very minor (but right is right) grammatical error.)
m
Line 1: Line 1:
{{LSL Header|ml=*}}{{LSLC|}}
{{LSL Header|ml=*}}{{LSLC|}}
Articles in this category need examples written for them. To do that set the 'examples' value equal to a multiline string.
Articulos en esta categoria necesitan ejemplos escritos para ellos. Para hacer eso pon el valor 'examples' igual a una secuencia multilinear.


Example: [[llFrand]] (the order of the parameters in the definition has no effect on the rendering).
Ejemplo: [[llFrand]] (el orden de los parametros en esta definicion no tiene efecto en la representación).
<pre>
<pre>
{{LSL_Function
{{LSL_Function

Revision as of 22:14, 3 January 2011

Articulos en esta categoria necesitan ejemplos escritos para ellos. Para hacer eso pon el valor 'examples' igual a una secuencia multilinear.

Ejemplo: llFrand (el orden de los parametros en esta definicion no tiene efecto en la representación).

{{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 200 pages are in this category, out of 635 total.

(previous page) (next page)
(previous page) (next page)