|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Random
edu.ensieta.simulation.MoreRandom
Etend les fonctions de génération de nombre aléatoires. Fournit notamment des générateurs suivant différentes lois.
Random,
Serialized Form| Field Summary | |
static long |
serialVersionUID
|
| Constructor Summary | |
MoreRandom()
Constructeur par défaut. |
|
MoreRandom(long seed)
Constructeur avec un germe aléatoire. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
double |
nextTriangle(double a,
double b,
double c)
Renvoie un nombre aléatoire suivant la loi triangulaire. |
double |
nextUniform()
Renvoie un nombre aléatoire suivant la loi uniforme. |
long |
randomize()
Initialise le germe à une valeur aléatoire, construite à partir de l'heure système. |
void |
setSeed(long seed)
Réinitialise le germe à la valeur indiquée. |
| Methods inherited from class java.util.Random |
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
| Constructor Detail |
public MoreRandom()
public MoreRandom(long seed)
seed - germe.| Method Detail |
public void setSeed(long seed)
seed - germe.public long randomize()
public double nextUniform()
public double nextTriangle(double a,
double b,
double c)
a - borne inférieure;b - abscisse de la densité de probabilité maximale;c - borne supérieure.
a et c
suivant une loi triangulaire(a,b,c).public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||