com.threerings.util
Class RandomUtil

java.lang.Object
  extended by com.threerings.util.RandomUtil

Deprecated. moved to RandomUtil.

@Deprecated
public class RandomUtil
extends Object

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
<T> T
pickRandom(Collection<T> values)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(Iterator<T> iter, int count)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(Iterator<T> iter, int count, T skip)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(List<T> values)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(List<T> values, T skip)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(List<T> values, T skip, Random r)
          Deprecated. use RandomUtil.
static
<T> T
pickRandom(T[] values)
          Deprecated. use RandomUtil.
static
<T> T
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

RandomUtil

public RandomUtil()
Deprecated. 
Method Detail

getInt

@Deprecated
public static int getInt(int high)
Deprecated. use RandomUtil.


getInt

@Deprecated
public static int getInt(int high,
                                    int low)
Deprecated. use RandomUtil.


getFloat

@Deprecated
public static float getFloat(float high)
Deprecated. use RandomUtil.


getWeightedIndex

@Deprecated
public static int getWeightedIndex(int[] weights)
Deprecated. use RandomUtil.


getWeightedIndex

@Deprecated
public static int getWeightedIndex(float[] weights)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(T[] values)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(T[] values,
                                          T skip)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(Collection<T> values)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(List<T> values)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(List<T> values,
                                          T skip)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(List<T> values,
                                          T skip,
                                          Random r)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(Iterator<T> iter,
                                          int count)
Deprecated. use RandomUtil.


pickRandom

@Deprecated
public static <T> T pickRandom(Iterator<T> iter,
                                          int count,
                                          T skip)
Deprecated. use RandomUtil.