public class SamplerBase extends Object
Modifier | Constructor and Description |
---|---|
protected |
SamplerBase(UniformRandomProvider rng) |
Modifier and Type | Method and Description |
---|---|
protected double |
nextDouble() |
protected int |
nextInt() |
protected int |
nextInt(int max) |
String |
toString() |
protected SamplerBase(UniformRandomProvider rng)
rng
- Generator of uniformly distributed random numbers.protected double nextDouble()
[0, 1)
.protected int nextInt()
int
value.protected int nextInt(int max)
max
- Upper bound (excluded).int
value in the interval [0, max)
.Copyright © 2016 The Apache Software Foundation. All rights reserved.