I need to get the same sequence of the randomization by setting the seed. Can I do this in Visual Basic?
Code, I used:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Dim rand As New Random
MsgBox(rand.Next(1, 10))
End Sub
Thanks and have a nice day!
Aucun commentaire:
Enregistrer un commentaire