Results 1 to 3 of 3

Thread: [RESOLVED] Random and Method Next

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    3

    Resolved [RESOLVED] Random and Method Next

    I'm new to this but I having trouble coding a math equation using randomObject.next

    My code is:
    Module MathQuiz
    Sub Main()
    'create random Mathequation
    Dim randomObject As New Random()
    Dim randomNumber As Integer = randomObject.Next() 'generate random number
    Dim j As Integer
    Dim k As Integer

    'generate 20 random numbers between 1 and 15
    For j As Integer = 1 To 15

    Next
    Console.Write()

    For k As Integer = 1 To 15
    Console.Write("randomObject.Next, k = 7")

    If j And k Mod 15 = 0 Then

    Console.WriteLine()
    Console.ReadLine()

    End If
    Next
    End Sub

    End Module 'MathQuiz

    There are several errors

  2. #2
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Random and Method Next

    what language is this?
    Delete it. They just clutter threads anyway.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    3

    Re: Random and Method Next

    thankyou

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width