Difference between revisions of "Documentation/How Tos/Calc: RANDBETWEEN function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:RANDBETWEEN function}} |
+ | {{Documentation/CalcFunc MathematicalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_RAND_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_SERIESSUM_function | ||
+ | }}__NOTOC__ | ||
== RANDBETWEEN == | == RANDBETWEEN == | ||
Line 5: | Line 10: | ||
This function is only available if the '''Analysis AddIn''' is installed. | This function is only available if the '''Analysis AddIn''' is installed. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 14: | Line 18: | ||
: To generate a random number which never recalculates, copy a cell containing this function, and use '''Edit - Paste Special...''' (with '''Paste All''' and '''Formulas''' <u>not</u> selected and '''Numbers''' selected). | : To generate a random number which never recalculates, copy a cell containing this function, and use '''Edit - Paste Special...''' (with '''Paste All''' and '''Formulas''' <u>not</u> selected and '''Numbers''' selected). | ||
− | |||
: An alternative to this function not requiring the Analysis AddIn would be: | : An alternative to this function not requiring the Analysis AddIn would be: | ||
: <tt>'''INT(RAND()*(top-bottom+1))+bottom'''</tt>. | : <tt>'''INT(RAND()*(top-bottom+1))+bottom'''</tt>. | ||
− | |||
=== Example: === | === Example: === | ||
Line 24: | Line 26: | ||
: returns an integer between <tt>'''20'''</tt> and <tt>'''30'''</tt> (inclusive). | : returns an integer between <tt>'''20'''</tt> and <tt>'''30'''</tt> (inclusive). | ||
+ | {{SeeAlso|EN| | ||
+ | * [[Documentation/How_Tos/Calc: RAND function|RAND]] | ||
− | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]] | |
− | + | ||
− | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | |
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Latest revision as of 15:40, 31 January 2024
- Mathematical FunctionsTrigonometric
- COSSINTANCOTACOSACOTASINATANATAN2DEGREESRADIANSPIHyperbolic
- COSHSINHTANHCOTHACOSHACOTHASINHATANHRounding and remainders
- TRUNCROUNDROUNDDOWNROUNDUPCEILINGFLOOREVENODDMROUNDINTQUOTIENTMODLogarithm/Powers
-