|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.
     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.

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.3+ © 2001-2020 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u12. HTML convert time: 0.025 sec.