Syntax
RANDBETWEEN(bottom, top)
bottom is the smallest integer RANDBETWEEN will return.
top is the largest integer RANDBETWEEN will return.
| Modifier and Type | Field and Description |
|---|---|
| public static final FreeRefFunction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(ValueEval[]
the pre-evaluated arguments for this function. args is never args, OperationEvaluationContext null,
nor are any of its elements.primarily used to identify the source cell containing the formula being evaluated.
may also be used to dynamically create reference evals. ec)Implements org. Evaluate for RANDBETWEEN(). |
| instance | back to summary |
|---|---|
| public static final FreeRefFunction instance | |
| RandBetween | back to summary |
|---|---|
| private RandBetween() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) Implements org. Evaluate for RANDBETWEEN(). Must be given two arguments. Bottom must be greater than top. Bottom is rounded up and top value is rounded down. After rounding top has to be set greater than top.
| |