RANDPOISSON in Calligra Sheets: Sample Small Nonnegative Event Counts
Learn Calligra Sheets RANDPOISSON with exact arguments, reproducible inputs, independently checked results and implementation-specific cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
RANDPOISSON(lambda) is intended to sample a nonnegative integer count from a Poisson model with mean lambda. Use small, nonnegative parameters for the bounded examples here. The implementation accumulates probability masses in a loop, so very large parameters can create numerical or termination problems.
Syntax and parameter meaning
=RANDPOISSON(lambda)
The default registration accepts exactly one argument. The KDE RANDPOISSON entry gives the one-argument syntax despite extra parameter metadata in the function description. The wrapper explicitly rejects a negative lambda with #VALUE!.
It starts with exp(−lambda), draws a uniform threshold, and accumulates successive masses by multiplying by lambda/(i+1). Lambda describes the intended average count per chosen interval; it is not itself the next returned count.
Reproduce three checks
| Formula | Expected property |
|---|---|
=RANDPOISSON(3) |
Nonnegative integer, with no fixed next value |
=RANDPOISSON(0) |
0 |
=RANDPOISSON(-1) |
#VALUE! |
Enter each formula in a separate cell. Record the actual first sample rather than filling in an expected 3. The zero case is deterministic because the initial probability mass is exp(0)=1 and the uniform threshold is below one.
For the ideal Poisson model with lambda=3, independent distribution arithmetic gives theoretical mean 3 and variance 3. Neither a single observation nor a short series must equal those values. A plausibly nonnegative result checks only a limited property of the function.
Practical example: counts per fixed interval
Suppose a simple model assumes an average of three arrivals in a ten-minute interval. A hypothetical sampled count of 5 would represent one scenario for that interval; it is not evidence that the long-run arrival rate changed. Keep the interval length explicit beside lambda.
If the modeled rate is constant and the interval doubles, the model parameter would become 6. That is a modeling assumption about arrivals, not an automatic unit conversion performed by RANDPOISSON. Validate whether a Poisson model is appropriate before using counts to drive a capacity decision.
Numerical and operational limits
- Very large lambda can underflow exp(−lambda) to zero; repeated multiplication can then fail to advance the cumulative total. Avoid extreme inputs in this implementation.
- The loop has no explicit iteration limit in the inspected wrapper. A valid-looking nonnegative argument is not a guarantee of practical runtime.
- The result is a count, not a Poisson probability or density value.
- There is no seed parameter or guaranteed repeatable sequence.
- Samples are generated on evaluation; no background refresh schedule is established here.
- A few outputs within the expected type and range do not validate distribution tails or numerical accuracy across the parameter domain.
Availability and verification
- Release checked: Calligra Sheets 26.08.2, using KDE’s release source package and release information, inspected on October 18, 2026. Relevant locations:
sheets/functions/math.cpplines 203–204 and 782–801;sheets/engine/Function.cpplines 22–30. - Introduced: The original introduction version is not established by these sources. Current registration establishes presence in 26.08.2, not the first release.
- Lifecycle: Registered in the inspected release; no retirement or deprecation marker was found in this function’s registration. Retirement (removed support) and deprecation (discouraged but retained support) are different claims; neither is asserted here.
- Native testing: Selected cases were recalculated and saved in Calligra Sheets 25.04.2. The source discussion concerns 26.08.2. Unlisted examples and edge cases remain source-derived or independently calculated.
Related guides and sources
- AVERAGE
- VAR
- COUNT
- EXP
- Calligra function guide index
- KDE formula entry instructions, checked October 18, 2026. Examples use leading
=and semicolons, with a period for decimal numbers. Confirm regional separators in your installation before pasting.
Selected native results and screenshot
These results were observed in Calligra Sheets 25.04.2, using an ODS input evaluated and saved by the native application. Formula references and results were read back from the saved workbook. These are samples from one captured calculation state, not fixed expected future draws or a statistical distribution validation. Reopening or recalculating may produce different samples. The source discussion remains scoped to 26.08.2; native observations are 25.04.2.
| Native formula | Observed display |
|---|---|
=RANDPOISSON(3) |
1.0000000000 |
=RANDPOISSON(0) |
0.0000000000 |
=RANDPOISSON(-1) |
#VALUE! |
The sample count for lambda=3 happened to be 1. The zero-mean control returned 0, and the negative mean produced #VALUE!. These checks do not validate tail probabilities or large-parameter behavior.

Screenshot: Genuine native 25.04.2 capture. Selected F2 contains =RANDPOISSON(3) and displays 1.0000000000. Column F contains application results; column G contains descriptive formula labels. Column G identifies the full formula. The formula bar can be horizontally clipped on longer function names; the saved workbook independently confirms the expression.