Contact

Collabora Office RANDARRAY: Random Bounds, Dimensions and Integer Mode

Math Intermediate Collabora Office Calc

Specify random-array shapes and bounds, distinguish integer and decimal modes using analytical shape and range checks. Scoped to the new Linux desktop source build.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

RANDARRAY generates numerical values in a requested rectangular shape. A useful check is the shape, value type and allowed bounds, not a fixed list of “expected random numbers.” This guide predicts those properties from source and documentation without running a random generator in Collabora.

Syntax and defaults

=RANDARRAY([Rows [; Columns [; Min [; Max [; Integers]]]]])

Defaults are 1 row, 1 column, minimum 0, maximum 1 and Integers=FALSE. TRUE requests whole-number results. Use positive small integer dimensions and integer-valued bounds for the whole-number examples here.

The checked source uses its random engine on evaluation. It does not expose a seed argument in this signature. No repeatable sequence, snapshot persistence or exact recalculation trigger is established by these examples.

Step by step: a two-by-three whole-number array

Enter A2 2, B2 3, C2 1, D2 6 and E2 TRUE. The corresponding formula is:

=RANDARRAY(A2;B2;C2;D2;E2)

The complete literal version is =RANDARRAY(2;3;1;6;TRUE). Its analytical expectation is a 2-row by 3-column result containing six integers, each between 1 and 6 inclusive. No particular six values are predicted.

Duplicates are allowed. Six draws are not a permutation of 1 through 6, and nothing requires all possible values to appear. If a subsequent model requires unique identifiers or sampling without replacement, RANDARRAY alone does not enforce that requirement.

Decimal bounds and endpoints

=RANDARRAY(3;2;-1;1;FALSE) requests six numeric values in a 3Ă—2 layout between -1 and 1. FALSE permits nonintegral results; it does not require every result to have a fractional part.

The exact evaluator moves the decimal upper endpoint to the next representable value above Max before calling its uniform-real generator. Do not transfer RAND’s familiar strict-upper-exclusive wording to this function without qualification. The conservative property used here is Min≤value≤Max for the ordinary finite controls, allowing the stated upper endpoint.

In whole-number mode, the source rounds the bounds with its Up rounding mode, adjusts the upper generator endpoint to just below Max+1, and floors each draw. The worked bounds are already integers, so they avoid relying on an unverified interpretation of fractional or negative fractional bounds.

Defaults and a degenerate interval

=RANDARRAY() uses the 1Ă—1 defaults, with a numeric value between 0 and 1. The evaluator returns a scalar for this one-cell shape. =RANDARRAY(3) uses one column and produces three numeric values with the same default bounds.

=RANDARRAY(2;2;3;3;TRUE) has a degenerate integer interval: every value is analytically constrained to 3. That is a consequence of equal bounds, not a fabricated random sample or a native result. It is useful for checking the requested 2Ă—2 shape independently of random variation.

Advanced: reason about a simulation without certifying one run

For the six equally weighted integers 1 through 6, the mathematical mean is 3.5. Under an ideal uniform model, a sum of six such draws has expectation 21. A particular generated array need not sum to 21, average 3.5 or have balanced frequencies.

For a continuous uniform model on [-1,1], the mathematical mean is zero. The finite-precision implementation and any short sample are not a distribution certificate. Inspecting a few outputs would not establish independence, randomness quality or suitability for security-sensitive uses, and no such claims are made here.

If a report depends on a particular generated dataset, preserve that dataset deliberately using the application’s documented workflow and record its provenance. This guide does not claim that reopening a file or recalculating a sheet will reproduce the same values.

Invalid inputs and array workflow

The source rejects nonpositive dimensions and Min greater than Max with internal IllegalArgument. Thus RANDARRAY(0;2) and RANDARRAY(2;2;6;1) are invalid source controls. Oversized dimensions, nonfinite bounds and resource exhaustion are not tested; keep examples bounded.

The help describes array-formula entry for two-dimensional results and says dimensions driven by cell references may require deleting and re-entering the array formula after changes. That describes the help’s workflow, not verified spill or resizing behavior in the new Qt desktop. No keyboard shortcut, native array insertion or screenshot was used for this guide.

All random examples are property specifications. The guide contains no observed draws, invented current outputs or guaranteed sample statistics.

Product scope and evidence

This guide concerns the new Collabora Office desktop for Linux, source tag coda-26.04.4.3-1, commit 81339d176148d0d5c81ff05d82540f58f8aaa117. The 26.04 RANDARRAY help and exact evaluator source were checked October 18, 2026. The Linux package manifest supplies the recorded product mapping; its mutable publication is not an installed-binary attestation.

No Collabora runtime or spreadsheet calculation engine was executed. Examples are source-derived expectations and independent mathematical controls. No screenshots or interface tests are claimed. This evidence does not establish Classic, Online, CODE, mobile, Windows or macOS parity.

The first Collabora release introducing this function is unknown from the checked evidence. Current documentation and registration do not establish retirement or deprecation, and upstream release history is not substituted for product-specific introduction. Import/export behavior in other products was not tested.