T - The type of the value to be manufacturedpublic abstract class AbstractTypeManufacturer<T> extends Object implements TypeManufacturer<T>
| Modifier and Type | Field and Description |
|---|---|
private static Random |
RANDOM
A RANDOM generator
|
| Constructor and Description |
|---|
AbstractTypeManufacturer() |
| Modifier and Type | Method and Description |
|---|---|
double |
getDouble()
It returns a double value in an interval (0, 1.0)
|
int |
getInteger(int bound)
It returns a int/Integer value in an interval (0, bound).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeprivate static final Random RANDOM
public int getInteger(int bound)
bound - the upper bound (exclusive). Must be positive.public double getDouble()
Copyright © 2016. All rights reserved.