Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a consitent number based on a random
Message
 
 
À
14/09/2004 17:17:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00941102
Message ID:
00942163
Vues:
28
>
>If you initialize the random seed to a known value, the RAND() function will then return the same values in the same sequence:
>
>RAND(5)
>? RAND() && 0.49
>? RAND() && 0.35
>? RAND() && 0.98
>
>
>RAND(5)
>? RAND() && 0.49
>? RAND() && 0.35
>? RAND() && 0.98

Thank you very much for your help!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform