<?xml version="1.0" encoding="UTF-8"?> <helpdocument version="1.0"> <!-- * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * --> <meta> <topic id="text/scalc/01/func_randarray.xhp" indexer="include" status="PUBLISH"> <title id="tit">RANDARRAY function</title> <filename>/text/scalc/01/func_randarray.xhp</filename> </topic> </meta> <body> <bookmark id="bm_id221708806478124" branch="hid/SC_HID_FUNC_RANDARRAY_MS" localize="false"/> <bookmark branch="index" id="bm_id361708283183878"> <bookmark_value>RANDARRAY function</bookmark_value> </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 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 [; 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 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 the content of other cells, the array dimensions do not change when the referenced content changes. The array formula must be deleted and re-entered.</paragraph> <embed href="text/scalc/01/common_func.xhp#optional_args"/> <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"/> <embed href="text/scalc/00/avail_release.xhp#24.8"/> <embed href="text/scalc/01/common_func.xhp#notODFF"/> <paragraph role="paragraph" id="par_id341640870986703" localize="false"><literal>COM.MICROSOFT.RANDARRAY</literal></paragraph> <section id="relatedtopics"> <paragraph localize="false" role="paragraph" id="par_id621715863845320"><embedvar href="text/scalc/01/04060106.xhp#randbetween" markup="ignore"/>, <embedvar href="text/scalc/01/04060106.xhp#randbetween_nv_1" markup="ignore"/>, <embedvar href="text/scalc/01/04060106.xhp#rand_1" markup="ignore"/>, <embedvar href="text/scalc/01/04060106.xhp#rand_nv_1" markup="ignore"/></paragraph> <tip id="par_id701677016751508"><link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/RANDARRAY">RANDARRAY wiki page</link>.</tip> </section> </body> </helpdocument>