|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.RandomUtil
RandomUtil.
@Deprecated public class RandomUtil
Maintained for backwards compatibility with old Game Gardens games.
| Constructor Summary | |
|---|---|
RandomUtil()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
static float |
getFloat(float high)
Deprecated. use RandomUtil. |
|
static int |
getInt(int high)
Deprecated. use RandomUtil. |
|
static int |
getInt(int high,
int low)
Deprecated. use RandomUtil. |
|
static int |
getWeightedIndex(float[] weights)
Deprecated. use RandomUtil. |
|
static int |
getWeightedIndex(int[] weights)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(Collection<T> values)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(Iterator<T> iter,
int count)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(Iterator<T> iter,
int count,
T skip)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(List<T> values)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(List<T> values,
T skip)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(List<T> values,
T skip,
Random r)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(T[] values)
Deprecated. use RandomUtil. |
|
static
|
pickRandom(T[] values,
T skip)
Deprecated. use RandomUtil. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomUtil()
| Method Detail |
|---|
@Deprecated public static int getInt(int high)
RandomUtil.
@Deprecated
public static int getInt(int high,
int low)
RandomUtil.
@Deprecated public static float getFloat(float high)
RandomUtil.
@Deprecated public static int getWeightedIndex(int[] weights)
RandomUtil.
@Deprecated public static int getWeightedIndex(float[] weights)
RandomUtil.
@Deprecated public static <T> T pickRandom(T[] values)
RandomUtil.
@Deprecated
public static <T> T pickRandom(T[] values,
T skip)
RandomUtil.
@Deprecated public static <T> T pickRandom(Collection<T> values)
RandomUtil.
@Deprecated public static <T> T pickRandom(List<T> values)
RandomUtil.
@Deprecated
public static <T> T pickRandom(List<T> values,
T skip)
RandomUtil.
@Deprecated
public static <T> T pickRandom(List<T> values,
T skip,
Random r)
RandomUtil.
@Deprecated
public static <T> T pickRandom(Iterator<T> iter,
int count)
RandomUtil.
@Deprecated
public static <T> T pickRandom(Iterator<T> iter,
int count,
T skip)
RandomUtil.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||