Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RAND()
Message
De
07/07/1998 08:05:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/07/1998 07:48:21
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: RAND()
Divers
Thread ID:
00114831
Message ID:
00114835
Vues:
12
>For some reason RAND() keeps returning the same value each time. It doesn't matter what I init the seed with or if I keep trying to init the seed. Am I using it wrong?
Try initializing the rand() with -1.
= rand(-1)
for ix = 1 to 30
	? 30*rand()
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform