Difference between revisions of "Manuals/calci/RANDBETWEEN"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<div style="font-size:30px">'''RANDBETWEEN(lt,ut)'''</div><br/>
 
<div style="font-size:30px">'''RANDBETWEEN(lt,ut)'''</div><br/>
*<math>lt</math>  is the lower integer  <math> ut</math> is the upper integer.
+
*<math>lt</math>  is the lower integer   
 +
*<math> ut</math> is the upper integer.
  
  

Revision as of 00:33, 7 January 2014

RANDBETWEEN(lt,ut)


  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle lt} is the lower integer
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ut} is the upper integer.


Description

  • This function gives the random number in integers between the specified integers.
  • In Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle RANDBETWEEN(lt,ut), lt} is the lower integer and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ut} 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