randomarrayelement(
ARRAY
,
SEP
)

The randomarrayelement( function returns a random element from an array.


Parameters

This function has two parameters:

array – the text array.

sep – the separator character for the array.


Description

This function returns a random element from an array. Each time you use this function a new random array element will be returned.

randomarrayelement("red green blue gold silver white black"," ") ☞ blue
randomarrayelement("red green blue gold silver white black"," ") ☞ silver
randomarrayelement("red green blue gold silver white black"," ") ☞ red
randomarrayelement("red green blue gold silver white black"," ") ☞ gold

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but is now much faster.