Guest User

startup

a guest
Nov 2nd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function shell.run(program, ...)
  2. local q1 = math.random(1,100)
  3. local q2 = math.random(1,100)
  4. print("What is "..q1.."+"..q2.."?")
  5. local answer = q1+q2
  6. local uans = tonumber(read())
  7. if uans == answer then
  8. shell.oldrun(program, ...)
  9. else
  10. print("WRONG!")
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment