Random[]

❌ Doesn't work in Interactive Notebook

Category: Output.

Get a random item from a list.

Syntax

Random[item1, item2, ...]

Arguments

Examples

The following example gets a random value from a list.

answer = Random["rock", "paper", "scissors"]

See Also

Made with ❤️ by capjamesg