_RandomSeed
La variable pour stocker l'état actuel à la génération des nombres entiers aléatoires. _RandomSeedchange la valeur à l'appel de MathRand(). UtilisezMathSrand() pour définir l'état initial nécessaire.
Un nombre aléatoire x, reçu par la fonction MathRand(), est calculé à chaque appel comme ça:
x=_RandomSeed*214013+2531011;
_RandomSeed=x;
x=(x>>16)&0x7FFF;
|
Voir aussi
MathRand(), MathSrand(), Les types entiers