Discussion Overview
The discussion revolves around the method of seeding the `srand()` function with time in microseconds while using Visual Basic C++. Participants explore different approaches and clarify terminology related to the programming languages involved.
Discussion Character
- Technical explanation
- Debate/contested
Main Points Raised
- One participant inquires about the easiest way to seed `srand()` with time in microseconds in Visual Basic C++.
- Another participant suggests using `QueryPerformanceCounter()` as a method to achieve microsecond timing on Windows.
- A subsequent reply requests clarification on how to use `QueryPerformanceCounter()` for seeding.
- A code snippet is provided demonstrating the use of `QueryPerformanceCounter()` to seed `srand()`.
- One participant challenges the terminology, stating that Visual Basic and C++ are distinct languages and questions the necessity of seeding the RNG with microsecond precision.
- This participant argues that using a single initial seed for multiple experiments is preferable to re-seeding each time.
Areas of Agreement / Disagreement
Participants express differing views on the terminology of Visual Basic C++ and the necessity of microsecond precision for seeding the RNG. No consensus is reached regarding the best approach to seeding.
Contextual Notes
There is a lack of clarity regarding the definitions of Visual Basic and C++, as well as the implications of using microsecond precision for random number generation. The discussion does not resolve these issues.