Array Element generator

Returns random element from the given array.

helpers.arrayElement

Generator settings

Generate data to see results here.

Parameters & Example

Returns random element from the given array.

helpers.arrayElement(array: ReadonlyArray<T>)
array
The array to pick the value from.

Example

"gamma"

Use synthetic data in a test environment.

Related generators

Explore scenarios