public class Random extends Object
| Constructor and Description |
|---|
Random() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
randomBoolean() |
static void |
randomBytes(byte[] bytes) |
static double |
randomDouble() |
static float |
randomFloat() |
static int |
randomInt() |
static int |
randomInt(int n) |
static long |
randomLong() |
static long |
randomLong(long n) |
public static final int randomInt()
public static final int randomInt(int n)
n - upper bound, exclusivepublic static final long randomLong()
public static final long randomLong(long n)
n - upper bound, exclusivepublic static final boolean randomBoolean()
public static final float randomFloat()
public static final double randomDouble()
public static final void randomBytes(byte[] bytes)
Copyright © 2006–2015 Cojen. All rights reserved.