Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random generation
Message
 
 
À
13/05/2005 07:52:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01013774
Message ID:
01013792
Vues:
13
Terry,

It wouldn't work if there're deleted records and could pick the same record twice.

>I've tested out the following:
>
>
>For I = 1 to 150
>  lnQuesKey = CEILING( INT( RAND() * 2500) )
>* Fetch the question rec with lnQuesKey as PK
>Endfor
>
>
>Can't guarantee that it will give every no. from 1 to 2500 (without testing it an infinite no. of times!!!) but it seems to suffice, and HAS returned 1, and nos 1-10.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform