n=ceil(100*rnd)
g=0
c=0
while n!=g
g=input("Your guess?").val
if n < g then print "Lower!"
if n > g then print "Higher"
c = c + 1
end while
print "You got it in " + c + " tries!"
Run some MiniScript code right in your browser!