|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--NavalBattle.MyRandom
| Constructor Summary | |
MyRandom()
Inizializza la classe utilizzando il Timer del sistema. |
|
MyRandom(long Seed)
Inizializza la classe utilizzando Seed. |
|
| Method Summary | |
boolean |
nextBoolean()
Restituisce un valore di tipo boolean. |
void |
nextBytes(byte[] abyte0)
Restituisce un valore di tipo byte. |
double |
nextDouble()
Restituisce un double. |
float |
nextFloat()
Restituisce un float. |
double |
nextGaussian()
|
int |
nextInt()
Restituisce un Intero (a 32 bit) positivo o negativo. |
int |
nextInt(int max)
Restituisce un numero intero positivo nel seguente intervallo: 0 <= x < max Notare che il valore è sempre minore di max! |
long |
nextLong()
Restituisce un long. |
void |
setSeed(long Seed)
Cambia l'inizializzatore dell'istanza. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MyRandom()
public MyRandom(long Seed)
| Method Detail |
public void setSeed(long Seed)
public int nextInt()
public int nextInt(int max)
public float nextFloat()
public long nextLong()
public void nextBytes(byte[] abyte0)
public double nextGaussian()
public double nextDouble()
public boolean nextBoolean()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||