Logo

Programming-Idioms

History of Idiom 11 > diff from v79 to v80

Edit summary for version 80 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 79

2019-09-26, 19:05:40

Version 80

2019-09-26, 20:01:38

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

call random_number (a)
x(lbound(x) + int(a*ubound(x))