dim number as random = new random
randomnum =(Number.next(1,10))
Console.WriteLine("Welcome to the number guessing game ")
Threading.thread.sleep(1750)
Console.Writeline("Guess the number between 1 and 10 in the least amount of guesses to be the best")
Threading.thread.sleep(1750)
Console.writeline("Input your guess below")
Threading.thread.sleep(750)
Guesses = Console.readline
If guesses = randomnum then
Console.writeline("Well done you have correctly guessed the number")
If guesses <> randomnum then
Console.WriteLine("Try another number")
Loop Until guesses = randomnum
Threading.thread.Sleep(750)
Console.Writeline("It took you " & attempts & " attempts to guess the number correctly")