+1 888 340 6572

Random: Difference between revisions

From MultiCharts
(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...")
 
mNo edit summary
 
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 ====
== Usage ==
<syntaxhighlight>Random(Value)</syntaxhighlight>  
<syntaxhighlight>Random(Value);</syntaxhighlight>  


Where: [[Value]] - a numerical expression  
Where:  
 
:'''Value''' - a numerical expression.
   
   
==== Example ====
== Examples ==
<syntaxhighlight>Random(1.25) will return a random value anywhere between 0 and 1.25  
<syntaxhighlight>Random(1.25);</syntaxhighlight>
Will return a random value anywhere between 0 and 1.25.


Random(-10) will return a random value anywhere between -10 and 0</syntaxhighlight>
<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.