|Constructor and Description|
Creates a sampler.
|Modifier and Type||Method and Description|
Picks one of the items from the
public CollectionSampler(UniformRandomProvider rng, Collection<T> collection)
rng- Generator of uniformly distributed random numbers.
collection- Collection to be sampled. A (shallow) copy will be stored in the created instance.
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.