|
-
Feb 27th, 2010, 08:00 AM
#1
Thread Starter
Lively Member
Get Random value with no duplicate
hi... i use this code in which i want different value of i (no duplicate). . but this code return some duplicate value of i...
----------------------------
Dim r As New Random
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
dim i as Integer
For i = 1 To 5
MsgBox(r.Next(0, 5))
Next
End Sub
'----------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|