What is the scope of the Randomize(seed) function? The way this code is written will the random number generator be seeded with a value of 20 when generate is called from myfunction? Does the randomize function change a global variable or some local variable?
Thanks for any help!
Function myfunction()
Call seed()
Call generate()
End Function
Function seed()
Randomize (20)
End Function
Function generate()
Dim X As Integer
X = CInt(100*Rnd)
End Function
Aucun commentaire:
Enregistrer un commentaire