Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random function
Message
 
À
29/04/1998 11:56:45
David Wang
Sullivan Environmental Consulting, Inc.
Alexandria, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00095697
Message ID:
00095701
Vues:
17
The RAND() function returns a random number between 0 and 1. You can multiply the number by whatever you want to get a range of numbers. For instance, ?RAND()*100 will return a number from 0 to 100. You can use this to generate test data. It can also be handy when you write games.

Pass RAND() a negative number the first time you call it and it will use the system clock as a "seed." this will ensure that you don't get the same sequence of numbers each time you run your program.

>Is there random function in VPF? What it is for and returns?
>
>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform