General information
Category:
Coding, syntax & commands
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only