Random.Next(F,T)

  • Thread starter Thread starter KS
  • Start date Start date
K

KS

I can't make the Random,Next(1,13) to work !

In

Dim NrForDefekteEmne As Random = New Random.Next(1, 13)

Random.Next is marked as "not defined" - I have "Imports System"

What is wrong here ?

KS, Denmark
 
* "KS said:
I can't make the Random,Next(1,13) to work !

In

Dim NrForDefekteEmne As Random = New Random.Next(1, 13)

\\\
Dim r As New Random()
Dim i As Integer = r.Next(1, 13)
///
 
Back
Top