
massung
2022-2-4 16:17:38
Is there a simple “random item from set” function in Racket? I’m not seeing one off hand, but sometimes the function name that’s there isn’t what I think of

ben.knoble
2022-2-4 16:31:21
Maybe random-ref
and random-sample
, if a set is considered a sequence?

laurent.orseau
2022-2-4 16:31:29

massung
2022-2-4 16:31:38
@ben.knoble thanks, that’s good enough!

laurent.orseau
2022-2-4 17:20:48
If you have installed bazaar
already, you can also use choose
from bazaar/list
:grin: https://github.com/Metaxal/bazaar/blob/master/list.rkt#L17

fedandr
2022-2-4 17:29:06
@fedandr has joined the channel

wjb
2022-2-5 06:13:55
Does anyone know where this mysterious “Killed” might come from? # raco test file.rkt
raco test: (submod "file.rkt" test)
Killed

wjb
2022-2-5 06:39:41
Ah nevermind, that’s coming from the OS