|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.apache.commons.lang.math.RandomUtils
RandomUtils is a wrapper that supports all possible
Random methods via the Math.random()
method and its system-wide Random object.
| フィールドの概要 | |
static Random |
JVM_RANDOM
|
| コンストラクタの概要 | |
RandomUtils()
|
|
| メソッドの概要 | |
static boolean |
nextBoolean()
Returns the next pseudorandom, uniformly distributed boolean value from the Math.random() sequence. |
static boolean |
nextBoolean(Random rnd)
|
static double |
nextDouble()
Synonymous to the Math.random() call. |
static double |
nextDouble(Random rnd)
|
static float |
nextFloat()
Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the Math.random()
sequence. |
static float |
nextFloat(Random rnd)
|
static int |
nextInt()
Returns the next pseudorandom, uniformly distributed int value from the Math.random() sequence. |
static int |
nextInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value
(exclusive), from the Math.random() sequence. |
static int |
nextInt(Random rnd)
|
static int |
nextInt(Random rnd,
int n)
|
static long |
nextLong()
Returns the next pseudorandom, uniformly distributed long value from the Math.random() sequence. |
static long |
nextLong(Random rnd)
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
public static final Random JVM_RANDOM
| コンストラクタの詳細 |
public RandomUtils()
| メソッドの詳細 |
public static int nextInt()
Returns the next pseudorandom, uniformly distributed int value from the Math.random() sequence.
public static int nextInt(Random rnd)
public static int nextInt(int n)
Returns a pseudorandom, uniformly distributed int value
between 0 (inclusive) and the specified value
(exclusive), from the Math.random() sequence.
n - the specified exclusive max-value
public static int nextInt(Random rnd,
int n)
public static long nextLong()
Returns the next pseudorandom, uniformly distributed long value from the Math.random() sequence.
public static long nextLong(Random rnd)
public static boolean nextBoolean()
Returns the next pseudorandom, uniformly distributed boolean value from the Math.random() sequence.
public static boolean nextBoolean(Random rnd)
public static float nextFloat()
Returns the next pseudorandom, uniformly distributed float value
between 0.0 and 1.0 from the Math.random()
sequence.
public static float nextFloat(Random rnd)
public static double nextDouble()
Synonymous to the Math.random() call.
public static double nextDouble(Random rnd)
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||