Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rand()
Message
From
06/12/2002 20:24:39
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
06/12/2002 11:15:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Rand()
Miscellaneous
Thread ID:
00730328
Message ID:
00730559
Views:
14
Thanks Sylvain.

>Calling Rand (-1) at the application startup should be enough. Rand () just need a seed value to get started, otherwise it would generate the same set of values.
>
>HTH
>
>>I have an application that is using rand() to in more than on location in the program. The docs say:
>>
>>To achieve the most random sequence of numbers, issue RAND( ) initially with a negative argument and then issue RAND( ) without an argument.
>>
>>This application runs 24/7. Should I call rand(-1) when I first load the application or should I call rand(-1) each time before I generate a random number?
Previous
Reply
Map
View

Click here to load this message in the networking platform