Difference between revisions of "Manuals/calci/RANDBETWEEN"

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="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''RANDBETWEEN(lt,ut)'''</div><br/>
 +
*<math>lt</math>  is the lower integer  <math> ut</math> is the upper integer.
  
Syntax
 
  
</div></div>
+
==Description==
----
+
*This function gives the  random number in integers between the specified integers.
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
*In <math> RANDBETWEEN(lt,ut), lt</math> is the lower integer and <math>ut</math> is the upper integer this function will return.
 +
*The generated random numbers are changing each time of the calculation.
  
Examples
 
  
</div></div>
+
==Examples==
----
+
#RANDBETWEEN(-10,-1)=-8
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
#RANDBETWEEN(-2,2)=0
----
+
#RANDBETWEEN(15.1,50.4)=27
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
+
#RANDBETWEEN(1.1,1.7)=1
  
<font size="5">Description</font>
 
  
</div></div>
+
==See Also==
----
+
*[[Manuals/calci/RAND  | RAND ]]
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"><font size="6"> <font size="6">RANDBETWEEN</font> <font size="6"> </font> </font></font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><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">Let’s see an example in (Column1 Row 1, Column2 Row 1)</font></font>
 
  
<font size="3">RANDBETWEEN (B, T)</font>
+
==References==
 
 
<font size="3">RANDBETWEEN (C1R1, C2R1)</font>
 
 
 
<font size="3">ie. =RANDBETWEEN (20,100) is a random number between 20 and 100.</font>
 
 
 
</div></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left"><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">It calculates a random integer number berween the numbers which we specify.</font></font>
 
 
 
<font size="3" face="Times New Roman"> </font>
 
 
 
</div></div>
 
----
 
<div id="12SpaceContent" 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"><font size="3" face="Times New Roman"> </font>'''RANDBETWEEN'''('''B,T''')
 
 
 
'''B'''   is the smallest integer and '''T'''   is the largest integer.
 
 
 
</div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div>
 
 
 
{| id="TABLE1" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| class="      " | Column2
 
| class="    " | Column3
 
| class="  " |
 
| class="  " | Column4
 
|
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 20
 
| class="sshl_f" | 100
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 74
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="odd"
 
| Row3
 
| class="sshl_fSelectTD SelectTD " |
 
<div id="4Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="  " |
 
| class="sshl_f" |
 
|
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
| class=" " |
 
| class="sshl_f" |
 
|
 
|- class="odd"
 
| Row6
 
| class="sshl_f  " |
 
<div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
|
 
| class="sshl_f" |
 
|
 
|
 
|}
 
 
 
<div align="left"></div>''''''</div></div>
 
----
 
</div></div></div></div></div></div></div></div></div>
 

Revision as of 23:32, 6 January 2014

RANDBETWEEN(lt,ut)


  • is the lower integer is the upper integer.


Description

  • This function gives the random number in integers between the specified integers.
  • In is the lower integer and is the upper integer this function will return.
  • The generated random numbers are changing each time of the calculation.


Examples

  1. RANDBETWEEN(-10,-1)=-8
  2. RANDBETWEEN(-2,2)=0
  3. RANDBETWEEN(15.1,50.4)=27
  4. RANDBETWEEN(1.1,1.7)=1


See Also


References