choose()
Posted: Sun Jan 14, 2024 7:39 pm
I would like to see a new function called choose() that randomly selects data from a supplied series of items. Used this a lot with past environments.
Examples:
choose("Hello", "World","To", "The")
returns: "World"
choose( 1,3,7,8)
returns 3
Examples:
choose("Hello", "World","To", "The")
returns: "World"
choose( 1,3,7,8)
returns 3
Code: Select all
name.s = choose("Tod", "Paula","Fred","Bill")
debug name
Bill