PRB: Same Seed for Randomize Does Not Repeat Previous Sequence
Article ID: 129742
Article Last Modified on 1/8/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
- Microsoft Visual Basic 3.0 Professional Edition
- Microsoft Visual Basic 3.0 Professional Edition
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.
Additional query words: 3.00 4.00 vb4win vb4all
Keywords: kbprb KB129742