public class RandomService
extends java.lang.Object
| Constructor and Description |
|---|
RandomService()
Uses a default shared random.
|
RandomService(java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
hex() |
java.lang.String |
hex(int length) |
java.lang.Boolean |
nextBoolean() |
double |
nextDouble() |
int |
nextInt(int n) |
java.lang.Integer |
nextInt(int min,
int max) |
long |
nextLong() |
long |
nextLong(long n) |
public RandomService()
public RandomService(java.util.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 java.lang.Boolean nextBoolean()
public java.lang.Integer nextInt(int min,
int max)
public java.lang.String hex()
public java.lang.String hex(int length)
Copyright © 2019. All Rights Reserved.