public final class UtilityRandom extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getRandomBoolean()
Get a random boolean value.
|
static double |
getRandomDouble()
Get a random double value.
|
static int |
getRandomInteger()
Get a random integer value from 0 and 2^32.
|
static int |
getRandomInteger(int max)
Get a random value from 0 and a maximum.
|
static int |
getRandomInteger(int min,
int max)
Get a random value from an interval.
|
static void |
setSeed(long seed)
Set the seed.
|
public static void setSeed(long seed)
seed
- The seed value.public static int getRandomInteger()
public static int getRandomInteger(int max)
max
- The maximum randomized value.public static int getRandomInteger(int min, int max)
min
- The minimum value (>= 0).max
- The maximum value (>= 0 && >= min).public static boolean getRandomBoolean()
public static double getRandomDouble()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.