@FunctionalInterface public static interface DiscreteDistribution.Sampler
| Modifier and Type | Method and Description | 
|---|---|
int | 
sample()
Generates a random value sampled from this distribution. 
 | 
default IntStream | 
samples()
Returns an effectively unlimited stream of  
int sample values. | 
default IntStream | 
samples(long streamSize)
Returns a stream producing the given  
streamSize number of int
 sample values. | 
int sample()
default IntStream samples()
int sample values.
 The default implementation produces a sequential stream that repeatedly
 calls sample().
int values.default IntStream samples(long streamSize)
streamSize number of int
 sample values.
 The default implementation produces a sequential stream that repeatedly
 calls sample(); the stream is limited to the given streamSize.
streamSize - Number of values to generate.int values.Copyright © 2018–2022 The Apache Software Foundation. All rights reserved.