.randomOf()

Description

The randomOf method takes in an array as input and returns a random item from that array

Parameters

randomOf takes no parameters

Usage On Arrays

arr = ["wow","hello world"]
// setup the array

log arr.randomOf()
// Unknown which of the options it will return

Last updated