diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2024-05-15 13:50:52 -0300 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2024-05-16 06:00:12 +0200 |
commit | c42e46cb11f0d46bf918f3cc276750e380ed4af5 (patch) | |
tree | d776fdae1b76dd23c0bc997b478a4957314312bd /source | |
parent | de95bc710fa1d7d50842da37e06063a9157d2223 (diff) |
tdf#159872 More precision on RANDARRAY function
after https://gerrit.libreoffice.org/c/core/+/167645
Change-Id: I1ab0d6da97e0552bdf39d3670ddb953e00f2e81f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167700
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
Diffstat (limited to 'source')
-rw-r--r-- | source/text/scalc/01/func_randarray.xhp | 11 | ||||
-rw-r--r-- | source/text/scalc/01/func_sequence.xhp | 7 |
2 files changed, 10 insertions, 8 deletions
diff --git a/source/text/scalc/01/func_randarray.xhp b/source/text/scalc/01/func_randarray.xhp index b63c9219ed..6ac003e8ef 100644 --- a/source/text/scalc/01/func_randarray.xhp +++ b/source/text/scalc/01/func_randarray.xhp @@ -22,16 +22,17 @@ </bookmark> <section id="randarray"> <h1 id="hd_id901708806478126"><variable id="h1"><link href="text/scalc/01/func_randarray.xhp">RANDARRAY</link></variable></h1> - <paragraph id="par_id771708806478128" role="paragraph">Generates an array of random numbers between two values.</paragraph> + <paragraph id="par_id771708806478128" role="paragraph">Generates an array of random numbers between two limit values.</paragraph> </section> <embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/> -<paragraph role="code" id="par_id211708281649651">RANDARRAY(Rows, Columns, Min, Max, Whole number)</paragraph> +<paragraph role="code" id="par_id211708281649651">RANDARRAY([Rows], [Columns], [Min], [Max], [Integers])</paragraph> <paragraph role="paragraph" id="par_id101715616072623"><emph>Rows</emph>: (optional) the number of rows to return. If omitted, the value is 1.</paragraph> <paragraph role="paragraph" id="par_id271715616076797"><emph>Columns</emph>: (optional) the number of columns to return. If omitted, the value is 1.</paragraph> -<paragraph role="paragraph" id="par_id171715616081037"><emph>Min</emph>: (optional) the minimum number in the array. If omitted, the minimum value is 0.</paragraph> -<paragraph role="paragraph" id="par_id361715616086109"><emph>Max</emph>: (optional) the maximum number in the array. If omitted, the maximum value is 1.</paragraph> -<paragraph role="paragraph" id="par_id511715616090373"><emph>Whole number</emph>: (optional) returns whole numbers (TRUE) or decimal numbers (FALSE). Default is FALSE.</paragraph> +<paragraph role="paragraph" id="par_id171715616081037"><emph>Min</emph>: (optional) The lower limit of the generated numbers. If omitted, the minimum value is 0.</paragraph> +<paragraph role="paragraph" id="par_id361715616086109"><emph>Max</emph>: (optional) The upper limit of the generated numbers. If omitted, the maximum value is 1.</paragraph> +<paragraph role="paragraph" id="par_id511715616090373"><emph>Integers</emph>: (optional) returns whole numbers (TRUE) or decimal numbers (FALSE). Default is FALSE.</paragraph> <note id="par_id821708357634624">If <emph>Rows</emph> and <emph>Columns</emph> are greater than 1, the RANDARRAY function must be entered as an <link href="text/scalc/01/04060107.xhp#creating_array_formulas">array formula</link>.</note> +<paragraph role="paragraph" id="par_id141715790327107">If <emph>Rows</emph> or <emph>Columns</emph> are references to other cells content, the array dimensions do not change when the referenced content change. The array formula must be deleted and re-entered.</paragraph> <embed href="text/scalc/01/ful_func.xhp#func_head_example"/> <paragraph role="paragraph" id="par_id521715616457946"><input>{=RANDARRAY(10,4,10,50,1)}</input> returns an array of 10 rows, 4 columns with minimum value 10 and maximum value of 50 of whole numbers (integers).</paragraph> <embed href="text/scalc/01/common_func.xhp#sectiontechinfo"/> diff --git a/source/text/scalc/01/func_sequence.xhp b/source/text/scalc/01/func_sequence.xhp index d49ac5870d..64ba46a249 100644 --- a/source/text/scalc/01/func_sequence.xhp +++ b/source/text/scalc/01/func_sequence.xhp @@ -25,15 +25,16 @@ <paragraph id="par_id771708806478128" role="paragraph">Generate a list of sequential numbers in an array.</paragraph> </section> <embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/> -<paragraph role="code" id="par_id211708281649651">SEQUENCE(Rows, Columns, Start, Step)</paragraph> +<paragraph role="code" id="par_id211708281649651">SEQUENCE(Rows, Columns, [Start], [Step])</paragraph> <paragraph role="paragraph" id="par_id601714592655068"><emph>Rows</emph>: a positive integer. The number of rows to return.</paragraph> <paragraph role="paragraph" id="par_id521714592660164"><emph>Columns</emph>: a positive integer. The number of columns to return.</paragraph> <paragraph role="paragraph" id="par_id171714592664667"><emph>Start</emph>: optional. The initial value of the sequence. If omitted, default is 1.</paragraph> <paragraph role="paragraph" id="par_id531714592669635"><emph>Step</emph>: optional. The increment of each subsequent value in the array. If omitted, default is 1.</paragraph> <note id="par_id821708357634624">If <emph>Rows</emph> and <emph>Columns</emph> are greater than 1, the SEQUENCE function must be entered as an <link href="text/scalc/01/04060107.xhp#creating_array_formulas">array formula</link>.</note> -<paragraph role="paragraph" id="par_id61714595841660">The array is filled from the first row to the right up to the value of <emph>Columns</emph>, and then down to the number of rows.</paragraph> +<paragraph role="paragraph" id="par_id141715790327107">If <emph>Rows</emph> or <emph>Columns</emph> are references to other cells content, the array dimensions do not change when the referenced content change. The array formula must be deleted and re-entered.</paragraph> +<paragraph role="paragraph" id="par_id61714595841660">The array is filled from the first row to the right up to the value of <emph>Columns</emph>, and then down to the number of rows.</paragraph> <embed href="text/scalc/01/ful_func.xhp#func_head_example"/> -<paragraph role="paragraph" id="par_id201714595986945"><input>{=SEQUENCE(3,3,10,11)}</input> returns a 3 by 3 array below with upper right value of 10 and filling the array to the right and then downward.</paragraph> +<paragraph role="paragraph" id="par_id201714595986945"><input>{=SEQUENCE(3,3,10,11)}</input> returns the 3 by 3 array below with upper right value of 10 and filling the array to the right and then downward in steps of 11.</paragraph> <table id="tab_id641714595997898"> <tablerow> <tablecell> |