Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runtime vs Development Coding
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723472
Message ID:
00723481
Views:
8
>>
>>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.....
Previous
Reply
Map
View

Click here to load this message in the networking platform