Advertisement
Guest User

Untitled

a guest
Dec 26th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local ChosenNum
  2.  
  3. for i = 1,100 do
  4.     local Num = Random.new():NextInteger(1,15)
  5.     if Num > 5 and Num < 10 then
  6.         ChosenNum = math.floor(Num/2) -- some number rounding function
  7.     elseif Num > 0 and Num <= 5 then
  8.         ChosenNum = Num
  9.     else
  10.         ChosenNum = Num - 5
  11.     end
  12.    
  13.     print(ChosenNum)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement