Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- note = peripheral.wrap("top")
- mon.setCursorPos(1,1)
- mon.clear()
- mon.setTextScale(1)
- mon.setBackgroundColor(colors.black)
- mon.setTextColor(colors.white)
- count = 0
- val1 = 0
- val2 = 0
- val3 = 0
- val4 = 0
- val5 = 0
- val6 = 0
- val7 = 0
- val8 = 0
- val9 = 0
- val10 = 0
- val11 = 0
- val12 = 0
- val13 = 0
- val14 = 0
- val15 = 0
- val16 = 0
- while true do
- random = math.random(1,32768)
- if random == 1 then
- val1 = val1 + 1
- elseif random == 2 then
- val2 = val2 + 1
- elseif 2 < random and random <= 4 then
- val3 = val3 + 1
- elseif 4 < random and random <= 8 then
- val4 = val4 + 1
- elseif 8 < random and random <=16 then
- val5 = val5 + 1
- elseif 16 < random and random <=32 then
- val6 = val6 + 1
- elseif 32 < random and random <=64 then
- val7 = val7 + 1
- elseif 64 < random and random <= 128 then
- val8 = val8 + 1
- elseif 128 < random and random <= 256 then
- val9 = val9 + 1
- elseif 256 < random and random <= 512 then
- val10 = val10 + 1
- elseif 512 < random and random <= 1024 then
- val11 = val11 + 1
- elseif 1024 < random and random <= 2048 then
- val12 = val12 + 1
- elseif 2048 < random and random <= 4096 then
- val13 = val13 + 1
- elseif 4096 < random and random <= 8192 then
- val14 = val14 + 1
- elseif 8192 < random and random <= 16384 then
- val15 = val15 + 1
- elseif 16384 < random and random <= 32768 then
- val16 = val16 + 1
- else
- term.clear()
- print("You did something terribly wrong")
- end
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("1 - ")
- for i = 1, (val1/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,2)
- mon.write("2 - ")
- for i = 1, (val2/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,3)
- mon.write("3 - ")
- for i = 1, (val3/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,4)
- mon.write("4 - ")
- for i = 1, (val4/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,5)
- mon.write("5 - ")
- for i = 1, (val5/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,6)
- mon.write("6 - ")
- for i = 1, (val6/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,7)
- mon.write("7 - ")
- for i = 1, (val7/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,8)
- mon.write("8 - ")
- for i = 1, (val8/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,9)
- mon.write("9 - ")
- for i = 1, (val9/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,10)
- mon.write("10 - ")
- for i = 1, (val10/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,11)
- mon.write("11 - ")
- for i = 1, (val11/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,12)
- mon.write("12 - ")
- for i = 1, (val12/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,13)
- mon.write("13 - ")
- for i = 1, (val13/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,14)
- mon.write("14 - ")
- for i = 1, (val14/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,15)
- mon.write("15 - ")
- for i = 1, (val15/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,16)
- mon.write("16 - ")
- for i = 1, (val16/50) do
- mon.write("#")
- end
- mon.setCursorPos(1,17)
- mon.write("Count - " .. count)
- mon.setCursorPos(1,18)
- mon.write("Current Num - " .. random)
- os.sleep(0.015)
- mon.setCursorPos(1,19)
- mon.write("# = 50 Picks")
- count = count + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment