Logo

Programming-Idioms

History of Idiom 11 > diff from v76 to v77

Edit summary for version 77 by miguel:
New Kotlin implementation by user [miguel]

Version 76

2019-09-26, 16:06:41

Version 77

2019-09-26, 18:47:48

Idiom #11 Pick a random element from a list

List x must be non-empty.

Illustration

Idiom #11 Pick a random element from a list

List x must be non-empty.

Illustration
Extra Keywords
choose
Extra Keywords
choose
Code
list.random()