|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.MMRandom
megamek.common.MMRandom.SunRandom
static class MMRandom.SunRandom
Uses com.sun.java.util.collections.Random
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.MMRandom |
|---|
MMRandom.CryptoRandom, MMRandom.Pool36Random, MMRandom.SunRandom |
| Field Summary | |
|---|---|
(package private) java.util.Random |
random
|
| Fields inherited from class megamek.common.MMRandom |
|---|
R_CRYPTO, R_DEFAULT, R_POOL36, R_SUN |
| Constructor Summary | |
|---|---|
MMRandom.SunRandom()
|
|
| Method Summary | |
|---|---|
int |
randomInt(int maxValue)
Returns a random int in the range from 0 to one less than
the supplied max value. |
| Methods inherited from class megamek.common.MMRandom |
|---|
d6, d6, generate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.Random random
| Constructor Detail |
|---|
MMRandom.SunRandom()
| Method Detail |
|---|
public int randomInt(int maxValue)
MMRandomint in the range from 0 to one less than
the supplied max value.
randomInt in class MMRandommaxValue - - the smallest int value which will exceed
any random number returned by this method.
int from the value set [0, maxValue).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||