Dim Seed,Seed2, Difficulty as Integer
Console.WriteLine("Choose a difficulty level ('1' for easy, '2' for medium, '3' for hard")
Difficulty = Console.ReadLine()
Loop Until Difficulty < 4 and Difficulty > 0
Difficulty = Difficulty * 10
Difficulty = Difficulty * 100
Difficulty = Difficulty * 1000
Console.WriteLine("Pick a random 3 digit number(for the seed)")
Seed = Console.ReadLine()
Loop Until Seed > 99 and Seed < 1000
Dim RandomClass As New System.Random(Seed)
Dim RandomNum, Score, UserAnswer, CompAnswer,QuestionNumber As Integer
Dim RandomClass2 As New System.Random(Seed2)
Dim RandomNum2 As Integer
RandomNum = RandomClass.Next(Difficulty,Difficulty * 10 )
RandomNum2 = RandomClass2.Next(Difficulty, Difficulty * 10)
CompAnswer = RandomNum + RandomNum2
Console.WriteLine(QuestionNumber & ". What is " & RandomNum & " + " & RandomNum2)
UserAnswer = Console.ReadLine()
If UserAnswer = CompAnswer Then
Console.WriteLine("Well Done")
QuestionNumber = QuestionNumber + 1
Console.WriteLine("Wrong! The answer was " & CompAnswer)
QuestionNumber = QuestionNumber + 1
Console.WriteLine("You got " & Score & " correct!")