Title here
Summary here
(let choice (fun (_L) (...)))
Select a random element from a list
Note: If the list is empty, returns nil
_L
: list of elements(import std.Random)
(print (random:choice [1 2 3]))
(let shuffle (fun (_L) (...)))
Shuffle a given list
Note: The original list is not modified
_L
: list to shuffle(import std.Random)
(let data [1 2 3 4 5])
(let randomized (random:shuffle data))