return a copy of the RandomSampler object
return a copy of the RandomSampler object
Whether to sample the next item or not.
Whether to sample the next item or not. Return how many times the next item will be sampled. Return 0 if it is not sampled.
take a random sample
take a random sample
Set random seed.
Set random seed.
:: DeveloperApi :: A sampler based on Bernoulli trials.
item type