willyb321

test5

May 12th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. iDunno = math.random(4, 20)
  2. math.randomseed(os.time ())
  3.  
  4. function randomnums()
  5.   repeat
  6. if iDunno == 15 then
  7.   print(iDunno)
  8. else
  9.   iDunno = math.random(4, 20)
  10.   print(iDunno)
  11. end
  12. until iDunno == 15
  13. end
  14.  
  15. randomnums()
Advertisement
Add Comment
Please, Sign In to add comment