public interface RandomValueGenerator
| Modifier and Type | Method and Description |
|---|---|
static RandomValueGenerator |
getInstance() |
static ServiceDefinition<RandomValueGenerator> |
getServiceDefinition() |
boolean |
nextBoolean()
Generate a random boolean.
|
byte |
nextByte()
Generate a random byte.
|
byte[] |
nextBytes(int size)
Generate a random array of bytes.
|
double |
nextDouble()
Generate a random double between 0.0d (inclusive) and 1.0d (exclusive).
|
float |
nextFloat()
Generate a random float between 0.0f (inclusive) and 1.0f (exclusive).
|
int |
nextInt()
Generate a random int.
|
int |
nextInt(int bound) |
long |
nextLong()
Generate a random long.
|
byte nextByte()
byte[] nextBytes(int size)
size - The number of bytes to generate and return. This cannot be a negative number.IllegalArgumentException - If the size parameter is deemed illegal. For example, if it is a negative number.int nextInt()
int nextInt(int bound)
long nextLong()
float nextFloat()
double nextDouble()
boolean nextBoolean()
static ServiceDefinition<RandomValueGenerator> getServiceDefinition()
static RandomValueGenerator getInstance()
Copyright © 2010–2020 meanbean. All rights reserved.