srand (msvcrt)
Last changed: -67.168.110.227

.
Summary
The srand function sets the starting point for generating a series of pseudorandom integers. To reinitialize the generator, use 1 as the seed argument. Any other value for seed sets the generator to a random starting point. rand retrieves the pseudorandom numbers that are generated. Calling rand before any call to srand generates the same sequence as calling srand with seed passed as 1.

VB Signature:

    <DllImport("msvcrt")> Private Sub _
    srand(ByVal seed As Integer)
    End Sub

User-Defined Types:

None.

Alternative Managed API:

New Random(Seed As Integer)

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
srand on MSDN