fromIterable
Creates a RandomSelector from an Iterable, using uniform selection probabilities.
Return
A RandomSelector that selects elements uniformly at random.
Parameters
iterable
The iterable collection of elements.
Creates a RandomSelector from an Iterable, using uniform selection probabilities.
A RandomSelector that selects elements uniformly at random.
The iterable collection of elements.