Created
December 12, 2013 17:37
-
-
Save jda0/7932051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
' Form Controls: Button BtnPush, ListBox LstOutput | |
Dim r As Random | |
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load | |
r = New Random() | |
End Sub | |
Private Sub BtnPush_Click(sender As System.Object, e As System.EventArgs) Handles BtnPush.Click | |
LstOutput.Items.Clear() | |
For i = 1 To 10 | |
LstOutput.Items.Add(r.Next(1, 6)) | |
Next | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment