VB.NET
소스 Public Class Form1

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim myRandom As New Random
Label1.Text = myRandom.Next(1, 99)
End Sub
End Class 

1~99 사이 랜덤하게