How to extract N random different elements from a set of unique elements?
- by Roman
I have a set of unique elements (there are not two identical elements). And I would like to extract N random and different elements from the set. What is the easiest way to do it in Java?