Difference between revisions of "Random"
Jump to navigation
Jump to search
(Created page with "Returns a pseudo-random number between 0 and the value of the specified numerical expression. ==== Usage ==== <syntaxhighlight>Random(Value)</syntaxhighlight> Where: [[Va...") |
m |
||
Line 1: | Line 1: | ||
Returns a pseudo-random number between 0 and the value of the specified numerical expression. | Returns a pseudo-random number between 0 and the value of the specified numerical expression. | ||
− | + | == Usage == | |
− | <syntaxhighlight>Random(Value)</syntaxhighlight> | + | <syntaxhighlight>Random(Value);</syntaxhighlight> |
− | Where: | + | Where: |
+ | |||
+ | :'''Value''' - a numerical expression. | ||
− | == | + | == Examples == |
− | <syntaxhighlight>Random(1.25) | + | <syntaxhighlight>Random(1.25);</syntaxhighlight> |
+ | Will return a random value anywhere between 0 and 1.25. | ||
− | Random(-10) | + | <syntaxhighlight>Random(-10);</syntaxhighlight> |
+ | Will return a random value anywhere between -10 and 0. | ||
[[Category:Math and Trig]] | [[Category:Math and Trig]] |
Latest revision as of 06:34, 9 February 2012
Returns a pseudo-random number between 0 and the value of the specified numerical expression.
Usage
Random(Value);
Where:
- Value - a numerical expression.
Examples
Random(1.25);
Will return a random value anywhere between 0 and 1.25.
Random(-10);
Will return a random value anywhere between -10 and 0.