any

Designates a random chosen member of a set.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

any

# Examples

local wordOfTheDay put any word of field "Dictionary" into wordOfTheDay

go to any card -- goes to a random card in the stack

select any button

# Description

Use the any keyword to specify a random object of a specified type, or to designate a random chunk in a chunk expression.

The any keyword does not examine every member of a set; it specifies just one member of the set, randomly chosen. For example, the expression

if myString is in any field

checks whether `myString` is in a randomly chosen field, not whether `myString` is somewhere in one of the fields on the card.

# Tags

# See

- **keyword:** first, last - **function:** random - **glossary:** keyword, random, chunk expression, chunk, object