|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object name.alessiosaltarin.utils.AxsRand
public class AxsRand
Random Numbers Generator
Method Summary | |
---|---|
static AxsRand |
getReference()
Get reference to the singleton class AxsRand |
static void |
main(java.lang.String[] args)
Deprecated. |
boolean |
randBoolean()
Return a random true or false |
byte |
randByte()
Returns a random number between 0 and 127 |
byte |
randByte(byte b)
Returns a random number between 0 and b-1 (with b <=127) |
char |
randChar()
Returns a random char (between ASCII=32 and ASCII=132) |
double |
randDouble()
Returns a random double number |
float |
randFloat()
Returns a random float number |
int |
randInt(int maxint)
Returns a random number between 0 and maxint-1 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AxsRand getReference()
public int randInt(int maxint)
maxint
- Maximum number allowed
public byte randByte()
public byte randByte(byte b)
b
- Maximum number to be generated
public float randFloat()
public boolean randBoolean()
public double randDouble()
public char randChar()
public static void main(java.lang.String[] args)
args
-
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |