← All functions

RANDBETWEEN

Supported, behaves as documented

Category: Math and trigonometry · Last tested 2026-08-06

Real, executed compatibility results for the RANDBETWEEN function across Microsoft Excel, Google Sheets, and LibreOffice Calc — verified by actually running it. Syntax and links to each vendor’s official documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel Yes Not yet n/a
Google Sheets Yes Not yet n/a
LibreOffice Calc Yes Yes (25.8.7.3, 2026-08-06) Supported, behaves as documented

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when RANDBETWEEN’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Supported, behaves as documented 2026-07-19
24.8.7.2 Supported, behaves as documented 2026-07-19
25.2.0.3 Supported, behaves as documented 2026-07-24
25.8.7.3 Supported, behaves as documented 2026-08-06

Executed test cases

LibreOffice Calc 25.8.7.3 (tested 2026-08-06)

FormulaDescriptionResultExpectedVerdict
=RANDBETWEEN(1,10) Existence probe: confirm recognized and result plausible (integer 1..10) 5
Non-deterministic by design; harness should only check 1<=value<=10 and absence of #NAME?
Ran OK
=RANDBETWEEN(5,5) When bottom==top the result is deterministic 5 5 Matched
=RANDBETWEEN(-5,-1) Existence probe with an all-negative range -2
Non-deterministic; harness should only check -5<=value<=-1
Ran OK

Docs & syntax

Related how-to recipes

Compared against other functions