|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.RandomLib
public class RandomLib
Various games of chance.
| Constructor Summary | |
|---|---|
RandomLib()
|
|
| Method Summary | |
|---|---|
static int |
generateDigit()
Generates a single digit 0-9 inclusive. |
static int |
generateNonZeroDigit()
Generates a single digit 1-9 inclusive. |
static java.lang.String |
generatePhoneNumber()
Generates a random phone number. |
static java.lang.Object |
pick(java.util.List options)
Picks random item out of a collection. |
| 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 generateDigit()
public static int generateNonZeroDigit()
public static java.lang.String generatePhoneNumber()
public static java.lang.Object pick(java.util.List options)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||