public class RandomNumber extends Object
Constructor and Description |
---|
RandomNumber() |
Modifier and Type | Method and Description |
---|---|
static int |
get(int min,
int max)
Returns a pseudo-random number between min and max, inclusive.
|
static long |
get(long min,
long max)
Returns a pseudo-random number between min and max, inclusive.
|
public static int get(int min, int max)
Integer.MAX_VALUE - 1
.
http://stackoverflow.com/questions/363681/generating-random-integers-in-a-range-with-javamin
- Minimum valuemax
- Maximum value. Must be greater than min.Random.nextInt(int)
public static long get(long min, long max)
Copyright © 2017. All rights reserved.