Difference between revisions of "Manuals/calci/RAND"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''RAND()'''</div><br/>
 +
**RAND(),returns a random number between 0 and 1.
  
Syntax
+
==Description==
 +
*This function gives the real numbers, circulated in a uniformed way.
 +
*The random  numbers  generate a sequence of numbers which is lying between 0 and 1.
 +
*The generated random numbers are changing each time of the calculation.
 +
*To find the random real number between <math>a</math> and <math>b</math>, we can use RAND()*(b-a)+a.
 +
*Suppose we want to keep the same rand numbers for calculation, we can enter =RAND() in the formula bar.
  
</div></div>
+
==Examples==
----
+
#=RAND() = 0.37205533031374216
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
#=RAND()*100 = 46.92529523745179
 +
#=RAND()+25 = 25.684887402923778
  
Remarks
+
==Related Videos==
  
</div></div>
+
{{#ev:youtube|PiyApfbQ41c|280|center|RAND}}
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
==See Also==
 +
*[[Manuals/calci/RANDBETWEEN  | RANDBETWEEN ]]
  
</div></div>
+
==References==
----
+
*[http://www.techonthenet.com/excel/formulas/rand.php Rand Function]
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
 
  
</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">RAND</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
  
'''RAND'''( )
 
  
</div></div>
+
*[[Z_API_Functions | List of Main Z Functions]]
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[[ Z3 Z3 home ]]
|- class="even"
 
| class=" " |
 
| Column1
 
| class="        " | Column2
 
| class="  " | Column3
 
| class="  " |
 
| Column4
 
|
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 0.7135
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f SelectTD SelectTD" |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|
 
|
 
|- class="odd"
 
| Row3
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|
 
|
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
|
 
|
 
|
 
|
 
|
 
|- class="odd"
 
| Row6
 
| class="sshl_f" |
 
|
 
|
 
|
 
|
 
| class="   " |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|}
 
 
 
<div align="left"></div>''''''</div></div>
 
----
 
<div id="13SpaceContent" class="zcontent" align="left"><br /><br /><div id="1Space" class="gamizbox" title="1Space"><div id="1SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="1SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="1SpaceRollupContent" align="center"></span></span></div><div id="1SpaceCover"><div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
 
 
 
* For generating random number between two numbers n1 and n2,calculate 
 
 
 
RAND()*(n2-n1)+n1
 
 
 
</font></font></div></div>
 
----
 
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
 
It calculates an evenly distributed random real number between 0 and 1.
 
 
 
</div></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
 
<font size="3"><font face="Times New Roman">ie'''  ='''RAND( )   is a value that varies and  which is greater than zero and less than one.</font></font>
 
 
 
</div></div>
 
----
 
</div></div></div></div></div></div></div></div></div></div></div>
 

Latest revision as of 15:52, 28 June 2018

RAND()


    • RAND(),returns a random number between 0 and 1.

Description

  • This function gives the real numbers, circulated in a uniformed way.
  • The random numbers generate a sequence of numbers which is lying between 0 and 1.
  • The generated random numbers are changing each time of the calculation.
  • To find the random real number between and , we can use RAND()*(b-a)+a.
  • Suppose we want to keep the same rand numbers for calculation, we can enter =RAND() in the formula bar.

Examples

  1. =RAND() = 0.37205533031374216
  2. =RAND()*100 = 46.92529523745179
  3. =RAND()+25 = 25.684887402923778

Related Videos

RAND

See Also

References