Aurora Visio Studio TOP » Filter Reference » Array » Array Basics » GetRandomElements
Module: | FoundationLite |
---|
Get random array elements with repeating values or not.
Name | Type | Range | Description | |
---|---|---|---|---|
inArray | <T>Array | Input array | ||
inCount | Integer | 0 - | Number or selected records | |
inUniqueIndex | Bool | Flag implying select unique indices | ||
inSeed | Integer* | Random seed used to generate values | ||
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.