idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| java.lang.Object | doublePick(java.lang.Object[][] set) | Selects and returns one of the objects from
 the one of the object lists in the set. | 
| int[] | getHPBreakup(int level,
            int code) | Generates the die roll parts for an encoded hit
 point bitmap when the code is > 32768,
 or according to another formula otherwise. | 
| int | getHPCode(int roll,
         int dice,
         int plus) | This function generates an encoded 32 bit
 bitmap to represent a die roll for a mob
 hitpoints. | 
| int | getHPCode(java.lang.String str) | This function takes a friendly-ish hit point
 die roll formula and generates a bitmap
 that can be given to the rollHP method. | 
| java.util.Random | getRandomizer() | Returns the seeded randomizer used by this lib. | 
| boolean | normalizeAndRollLess(int score) | Takes a score from 0-100, normalizes it to
 between 5 and 95, and then rolls a random
 number between 0 and 100. | 
| int | normalizeBy5(int score) | Takes a score from 0-100, normalizes it to
 between 5 and 95. | 
| int | pick(int[] set) | Selects and returns one of the ints from
 the set. | 
| int | pick(int[] set,
    int not) | Selects and returns one of the ints from
 the set, except for the "not" one given | 
| java.lang.Object | pick(java.lang.Object[] set) | Selects and returns one of the objects from
 the set. | 
| java.lang.Object | pick(java.lang.Object[] set,
    java.lang.Object not) | Selects and returns one of the objects from
 the set, except for the "not" one given | 
| java.lang.Object | pick(java.util.List<? extends java.lang.Object> set) | Selects and returns one of the objects from
 the list. | 
| double | plusOrMinus(double range) | Returns a double from -(range) to (range) | 
| float | plusOrMinus(float range) | Returns a float from -(range) to (range) | 
| int | plusOrMinus(int range) | Returns an int from -(range-1) to (range-1) | 
| long | plusOrMinus(long range) | Returns a long from -(range-1) to (range-1) | 
| int | roll(int number,
    int die,
    int modifier) | The great workhorse that rolls dice. | 
| int | rollHP(int level,
      int code) | Generates hit points for an NPC based on bizarre
 rules. | 
| int | rollInRange(int min,
           int max) | Returns a random number within the given
 min and max range. | 
| long | rollInRange(long min,
           long max) | Returns a random number within the given
 min and max range. | 
| int | rollLowBiased(int number,
             int die,
             int modifier) | Rolls dice to generate a random number, but
 in a way that biases the lower numbers. | 
| int | rollNormalDistribution(int number,
                      int die,
                      int modifier) | Rolls dice to generate a random number, but
 in a way that ensures a more balanced distribution. | 
| int | rollPercentage() | Returns a random number from 1-100 | 
| void | scramble(int[] objs) | Randomizes the contents of the set | 
| void | scramble(java.lang.Object[] objs) | Randomizes the contents of the set | 
| void | scramble(java.util.List<?> objs) | Randomizes the contents of the list. | 
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstanceboolean normalizeAndRollLess(int score)
score - the number from 0-100int normalizeBy5(int score)
score - the number from 0-100int rollHP(int level,
           int code)
level - the level of the npccode - the die type, or a bitmapgetHPCode(String), 
getHPCode(int, int, int), 
getHPBreakup(int, int)int getHPCode(java.lang.String str)
str - the string to evaluategetHPCode(int, int, int), 
rollHP(int, int), 
getHPBreakup(int, int)int getHPCode(int roll,
              int dice,
              int plus)
roll - the number of die rollsdice - the sides on the dieplus - the amount to add to the resultgetHPCode(String), 
rollHP(int, int), 
getHPBreakup(int, int)int[] getHPBreakup(int level,
                   int code)
level - the level of the npccode - the die type, or a bitmapgetHPCode(String), 
getHPCode(int, int, int), 
rollHP(int, int)java.lang.Object pick(java.lang.Object[] set,
                      java.lang.Object not)
set - the set to choose fromnot - null, or a member to not selectpick(Object[]), 
pick(int[]), 
pick(List), 
pick(int[], int), 
doublePick(Object[][])java.lang.Object pick(java.lang.Object[] set)
set - the set to choose frompick(Object[], Object), 
pick(int[]), 
pick(List), 
pick(int[], int), 
doublePick(Object[][])int pick(int[] set,
         int not)
set - the set to choose fromnot - null, or a member to not selectpick(Object[]), 
pick(Object[], Object), 
pick(int[]), 
pick(List), 
doublePick(Object[][])int pick(int[] set)
set - the set to choose frompick(Object[], Object), 
pick(Object[]), 
pick(List), 
pick(int[], int), 
doublePick(Object[][])java.lang.Object pick(java.util.List<? extends java.lang.Object> set)
set - the list to choose frompick(Object[], Object), 
pick(Object[]), 
pick(int[]), 
pick(int[], int), 
doublePick(Object[][])java.lang.Object doublePick(java.lang.Object[][] set)
set - the sets to choose frompick(Object[], Object), 
pick(Object[]), 
pick(int[]), 
pick(List), 
pick(int[], int)int rollPercentage()
int roll(int number,
         int die,
         int modifier)
number - the number of times to rolldie - the sides of the diemodifier - the amount to addrollNormalDistribution(int, int, int), 
rollLowBiased(int, int, int), 
rollInRange(long, long), 
rollInRange(int, int)int rollInRange(int min,
                int max)
min - the minimum of the rangemax - the maximum of the rangerollInRange(long, long), 
roll(int, int, int), 
rollLowBiased(int, int, int), 
rollNormalDistribution(int, int, int)long rollInRange(long min,
                 long max)
min - the minimum of the rangemax - the maximum of the rangerollInRange(int, int), 
roll(int, int, int), 
rollLowBiased(int, int, int), 
rollNormalDistribution(int, int, int)int rollNormalDistribution(int number,
                           int die,
                           int modifier)
number - the number of times to rolldie - the sides of the diemodifier - the amount to addroll(int, int, int), 
rollLowBiased(int, int, int), 
rollInRange(int, int), 
rollInRange(long, long)int rollLowBiased(int number,
                  int die,
                  int modifier)
number - the number of times to rolldie - the sides of the diemodifier - the amount to addroll(int, int, int), 
rollNormalDistribution(int, int, int), 
rollInRange(int, int), 
rollInRange(long, long)java.util.Random getRandomizer()
long plusOrMinus(long range)
range - the range of the random longplusOrMinus(int)int plusOrMinus(int range)
range - the range of the random intplusOrMinus(long)double plusOrMinus(double range)
range - the range of the random doubleplusOrMinus(long)float plusOrMinus(float range)
range - the range of the random floatplusOrMinus(long)void scramble(java.util.List<?> objs)
objs - the list to scramblescramble(int[])void scramble(int[] objs)
objs - the set to randomizescramble(List)void scramble(java.lang.Object[] objs)
objs - the set to randomizescramble(List)