writeline("Enter a random seuence of numbers.")
Dim randomclass As New system.random(seed)
Dim randomnum,answer,counter As Integer
dim correct as integer =0
randomnum = randomclass.next(1, 51)
writeline("Please enter your guess between 1 and 50.")
if answer<1 or answer>50 then
writeline("Between 1 and 50!!!")
loop until answer>=1 and answer<=50
writeline("You've guessed it correct!!")
writeline("you've guessed it wrong")
writeline("The correct answer is higher.")
writeline("The correct answer is lower.")
writeline("Congratulations, you took " & counter & " tries to guess the correct answer.")