Start » Filter Reference » Basic » Random » RandomInteger

RandomInteger


Module: FoundationLite

Creates random integer value in given closed interval.

Name Type Description
Input value
inMinValue Integer Minimal generated value
Input value
inMaxValue Integer Maximal generated value
Input value
inSeed Integer* Random seed used to generate values
Output value
outValue Integer

Remarks

This filter should not be used for generating cryptographically secure random numbers.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Value of inMinValue is greater than value of inMaxValue.
DomainError Values inMinValue and inMaxValue are equal.

Complexity Level

This filter is available on Basic Complexity Level.