(math:initRng) (define toGuess (math:rand 1 100)) (var guessed 0) (var tries 0) (while (!= guessed toGuess) { (set tries (+ tries 1)) (set guessed (static_cast "int" (input "Input number: "))) (if (< guessed toGuess) { (print "More !") } { (if (> guessed toGuess) { (print "Less !") }) }) }) (print (+ "Well done, you found the number in " (+ (static_cast "string" tries) " tries")))