Random number issue

  • Thread starter Thread starter Les2011
  • Start date Start date
L

Les2011

Guest
I tried to see what I was doing wrong but for the sake of it I can not understand the error message TYPE EXPECTED for random function. I tried it with and without the parens but no good.

Its probably something simple as always but I am puzzled.

Les

Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim dum As Integer
Dim rn As New Random()
dum = rn.Next(0, 20)
End Sub
End Class

Thanks in advance

Les

Continue reading...
 
Back
Top