public class RandomService extends Object
Constructor and Description |
---|
RandomService()
Uses a default shared random.
|
RandomService(Random random) |
Modifier and Type | Method and Description |
---|---|
String |
hex() |
String |
hex(int length) |
Boolean |
nextBoolean() |
double |
nextDouble() |
int |
nextInt(int n) |
Integer |
nextInt(int min,
int max) |
long |
nextLong() |
long |
nextLong(long n) |
public RandomService()
public RandomService(Random random)
random
- If null is passed in, a default Random is assignedpublic int nextInt(int n)
public long nextLong()
public long nextLong(long n)
public double nextDouble()
public Boolean nextBoolean()
public Integer nextInt(int min, int max)
public String hex()
public String hex(int length)
Copyright © 2019. All rights reserved.