Well for your specific usecase you can use 
[sample]([https://nim-lang.org/docs/random.html#sample%2Cset%5BT%5D](https://nim-lang.org/docs/random.html#sample%2Cset%5BT%5D))
 from the random module. Otherwise the [manual 
entry]([https://nim-lang.org/docs/manual.html#types-set-type](https://nim-lang.org/docs/manual.html#types-set-type))
 on sets should have what you need.

Reply via email to