PRB: Same Seed for Randomize Does Not Repeat Previous Sequence (129742)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q129742 SYMPTOMS
When you use the Randomize function with the same value for the seed
number, the function does not repeat the previous sequence.
WORKAROUND
To repeat sequences of random numbers, call the Rnd function with a
negative argument immediately before using Randomize with a numeric
argument.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB129742 |
---|
|