Contact

RANDLEVY Function (Gnumeric)

Statistical Intermediate Gnumeric

Generate alpha-stable variates in Gnumeric with RANDLEVY, stability/skewness parameters, normal and Cauchy cases and heavy-tail limitations.

Verification status: Gnumeric 1.12.57 ssconvert bounded RANDLEVY fixtures; pinned/retained 1.12.62 source separate; no GUI. How formula examples are checked

RANDLEVY generates a value from a Lévy alpha-stable family. The parameters select stability, skewness and scale. This family includes symmetric Cauchy and normal special cases; the function name does not mean that every call produces the positive-only classical Lévy distribution.

Syntax and defaults

=RANDLEVY(c,alpha[,beta])

Scale c and stability alpha are required. Optional skewness beta defaults to 0. Use c > 0, 0 < alpha ≤ 2 and -1 ≤ beta ≤ 1. Beta zero selects the symmetric case. Alpha and beta are distribution parameters, not percentages of a probability.

The function is volatile and returns a new random variate on recalculation. Its syntax has no seed or location argument. Adding a constant to a generated value shifts a realization, but comparing stable-distribution parameterizations across software requires care, especially at alpha = 1 with nonzero skewness.

Worked example: symmetric normal special case

=RANDLEVY(1,2) uses default beta zero. Its output is a random number, not a reproducible literal. The symmetric alpha = 2 distribution has mean 0 and standard deviation √2, approximately 1.414213562373, for c = 1 in the inspected parameterization. The theoretical variance is 2, not 1.

The native fixture checked that this call returned a number in one execution. It did not claim that a particular draw, a sample mean or an empirical variance must equal a fixed value.

For alpha = 1 and beta = 0, =RANDLEVY(1,1,0) gives a standard symmetric Cauchy variate. Its theoretical median is 0, but its mean and variance are undefined. An ordinary sample mean from such draws is not an estimate that reliably settles toward a finite population mean.

Advanced use: calibrate the normal limit

To obtain theoretical normal standard deviation 3 in the symmetric alpha = 2 case, use scale c = 3/√2, approximately 2.121320343560. Thus =RANDLEVY(3/SQRT(2),2,0) has the same theoretical zero-mean normal distribution as a normal generator with standard deviation 3, though it need not produce the same random sequence.

For a heavy-tailed model with alpha below 2, do not calibrate scale by assuming a finite variance. Changing alpha changes the tail behavior, and for many stable distributions moments used in ordinary normal modeling do not exist. Use justified quantile or scale conventions and state the stable parameterization explicitly.

When exploring a saved sample, keep raw values and robust summaries visible. A very large draw can be consistent with a heavy-tailed model. Deleting it solely because it is inconvenient changes the simulation’s intended behavior.

Errors and troubleshooting

  • Alpha 0 or 3 produced #NUM! in the bounded native tests.
  • Beta 2 produced #NUM!; valid skewness lies in [-1,1].
  • Scale c = 0 returned 0 in native 1.12.57, while the inspected 1.12.62 source rejects c ≤ 0 and maps the invalid result to #NUM!. Do not rely on zero-scale behavior across releases; use positive c for the documented nondegenerate distribution.
  • Do not assume c equals standard deviation. Even in the normal special case the factor is √2.
  • A sample average of Cauchy draws is not evidence of a finite population mean, and a finite sample variance does not create a theoretical variance where none exists.
  • Extreme parameters and very large random samples were not tested here. Type checks of ordinary calls do not establish statistical quality or tail accuracy.
  • The generator is not intended for cryptographic secrets or a guarantee about real-world tail risk.

Official NEWS lists RANDLEVY among new random-distribution functions in Gnumeric 1.1.6. Retained 1.12.62 source supports the inspected parameterization and validation, while native results are separately scoped below. No last functioning release or retirement is inferred.

RANDCAUCHY and RANDNORM provide related special-case distributions; matching distribution parameters does not imply matching random streams.

Official sources

Native verification scope

On 17 October 2026, Gnumeric 1.12.57 ssconvert recalculated 6 bounded RANDLEVY fixture records in C.UTF-8. The saved input workbook, exact formula cells, expected specification and output workbook were cross-checked against the native result records. Ordinary random calls were tested only for numeric results; deterministic zero/error cases were checked separately. This is not statistical certification or a fixed-draw promise. This is native engine evidence, not GUI or screenshot evidence. Inspected 1.12.62 source is separate from the 1.12.57 executable. Composed helper formulas and distributional identities are mathematical checks unless separately recorded. Other versions and untested boundaries remain outside this scope.

Cross-program scope

These are Gnumeric function names and argument conventions. Similar option or random-distribution functions in other spreadsheets may use different defaults, scaling or parameterizations. Exporting a workbook does not establish that another program will recalculate these formulas; verify support and results in the destination program before relying on them.