Category:LSL Needs Example/ja

From Second Life Wiki
Jump to navigation Jump to search

このカテゴリの中の記事には、例をつける必要があります。例をつけるには、'examples' の値として見えるままの複数行の文字列を設定してください。

例: llFrand (定義中のパラメタの順序は、表示に全く影響ありません)

 |p1_desc=Any valid float value
 |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.
 |examples=<source lang="lsl2">default
     touch_start(integer total_number)
         // When touched, say "Heads" with probability 0.5, 
         // otherwise, say "Tails."
         if ( llFrand(1.) < .5)
             llSay(0, "Heads");
             llSay(0, "Tails");
 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.

Pages in category "LSL Needs Example/ja"

The following 98 pages are in this category, out of 98 total.