public final class BinomialRange extends java.lang.Object implements IRandomRange
| Modifier and Type | Class and Description |
|---|---|
static class |
BinomialRange.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private int |
n |
private float |
p |
BINOMIAL, CONSTANT, UNIFORM| Constructor and Description |
|---|
BinomialRange(int n,
float p) |
| Modifier and Type | Method and Description |
|---|---|
int |
generateInt(java.util.Random rand) |
ResourceLocation |
getType() |
static BinomialRange |
of(int nIn,
float pIn) |
public int generateInt(java.util.Random rand)
generateInt in interface IRandomRangepublic static BinomialRange of(int nIn, float pIn)
public ResourceLocation getType()
getType in interface IRandomRange