|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.map.generators.Randomlib
public class Randomlib
Helper library for customized random calculations.
| Constructor Summary | |
|---|---|
Randomlib()
|
|
| Method Summary | |
|---|---|
static int |
linearRange(int low,
int high)
Returns an integer from the range [low, high] |
static int |
oneOfWeightedList(int[] weights)
Gets a random element out of a weighted list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Randomlib()
| Method Detail |
|---|
public static int linearRange(int low,
int high)
public static int oneOfWeightedList(int[] weights)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||