Sub Ex_Drand48()
Dim XSeed(2) As Integer, Seed As Long, I As Integer
Seed = 13
Debug.Print "Initialized by
Srand48"
For I = 1 To 10
Next
Seed = 13
XSeed(0) = &H330E: XSeed(1) = Seed Mod (2 ^ 16): XSeed(2) = Seed / (2 ^ 16)
Debug.Print "Initialized by
Seed48"
For I = 1 To 10
Next
End Sub
Sub Srand48(Seed As Long)
Initialization with 32-bit seed for Drand48, Lrand48 and Mrand48 (Linear congruential method)
Sub Seed48(Xseed() As Integer)
Initialization with 48-bit seed for drand48, lrand48 and mrand48 (Linear congruential method)
Function Drand48() As Double
48 bit real random number in [0,1) (Linear congruential method)