MindFusion.Wpf Pack Programmer's Guide
RANDBETWEEN

Returns a random integer number in the specified range.

Syntax  Copy Code

RANDBETWEEN( Integer bottom, Integer top )  Integer

Parameters

bottom
Required. The smallest value the function can return.
top
Required. The largest value the function can return.

Remarks

The function returns a random value in the interval [bottomtop]. If bottom is greater than top, RANDBETWEEN returns the #NUM! error value. If the specified arguments are not integer, they are automatically truncated.

Example

Formula  Copy Code

=RANDBETWEEN(1,100)
=RANDBETWEEN(-1,1)

See Also

Function Reference
RAND Function