Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Runtime vs Development Coding
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00723472
Message ID:
00723481
Vues:
9
>>
>>Why is the RAND statement not working in the exe?
>>
>>Thanks!
>
>
>Seed Rand() with a -1 before calling it. This will make it random all the time.
>IF you closed your developement environment and called it, in that order each time you will note that it always is the same.
>
>Try:
>rand(-1)
>l_nPickNumber=round(rand()*100,0)
>
>Tracy

Thanks to you and Sergey - that did it!

Regards,
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform