Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shell.run(program, ...)
- local q1 = math.random(1,100)
- local q2 = math.random(1,100)
- print("What is "..q1.."+"..q2.."?")
- local answer = q1+q2
- local uans = tonumber(read())
- if uans == answer then
- shell.oldrun(program, ...)
- else
- print("WRONG!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment