|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectt2s.util.Random
public class Random
Une classe pour générer des nombres aléatoires à notre manière
| Constructor Summary | |
|---|---|
Random()
|
|
| Method Summary | |
|---|---|
static int |
delta(int i,
int n)
Pour augmenter ou diminuer d'un delta une valeur |
static boolean |
negatif()
Pour décider aléatoirement si un nombre est négatif |
static double |
random(int n)
Pour obtenir des nombres aléatoires signés |
static int |
unsignedDelta(int i,
int n)
Pour augmenter d'un delta une valeur |
static double |
unsignedRandom(int n)
Pour obtenir des nombres flottants aléatoires non signés |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Random()
| Method Detail |
|---|
public static boolean negatif()
public static double unsignedRandom(int n)
n - la borne superieure de l'intervalle
public static double random(int n)
n - la borne inferieure et superieure de l'intervalle
public static int unsignedDelta(int i,
int n)
i - la valeur en questionn - le maximum possible pour le delta
public static int delta(int i,
int n)
i - la valeur en questionn - le maximum possible pour le delta
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||