Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 11: Pick a random element from a list

See programming-idioms.org:

A random number in Fuzion is obtained via the effect random, operation next_i32 returns a positive integer smaller than the argument.

Code

Running Example

last changed: 2024-07-01