Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random numbers
Message
 
 
À
15/12/1999 15:39:30
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00304326
Message ID:
00304492
Vues:
23
Jim,

The RAND() function yields a RANDOM number between 0 and 1. When I want a random number I use the following function :

ln_random = INT((RAND() * range)) + beginning_of_range

This gives me a random number between two integers. This statement is used after seeding the RAND function.
Ken Wardwell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform