RosettaCodeData/Task/Pick-random-element/Nu/pick-random-element.nu

2 lines
49 B
Plaintext

[5 6 7 8 9] | get (random int ..<($in | length))