Back to FabImage Studio website

You are here: Start » Filter Reference » Array » Array Basics » GetRandomElements

GetRandomElements


Module: FoundationLite

Get random array elements with repeating values or not.

Name Type Range Description
Input value inArray <T>Array Input array
Input value inCount Integer 0 - Number or selected records
Input value inUniqueIndex Bool Flag implying select unique indices
Input value inSeed Integer* Random seed used to generate values
Output value outArray <T>Array Output array

The type of this filter is defined using the type variable T which represents any valid type. Read more.

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 Negative inCount in GetRandomElements.
DomainError Not enough items in the input array in GetRandomElements.

Complexity Level

This filter is available on Advanced Complexity Level.