Advertisement
DerMarten

test2

Jul 27th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local printer = peripheral.wrap("right") -- Wrap the printer
  2. local ready = printer.newPage()
  3.  
  4. if ready then
  5. local width, height = printer.getPageSize()
  6. runs = width*height
  7. chars = {"A","a","B","b","C","c","D","d","E","e","F","f","G","g","H","h","I","i","J","j","K","k","L","l","M","m","N","n","O","o", "P","p", "Q","q","R","r" ,"S","s","T","t", "U","u", "V","v","W","w","X","x","Y","y","Z","z","1","2","3","4","5","6","7","8","9","0","!","?","-",":"}
  8. for i = 0, runs,1 do
  9. rand = math.random(2,table.getn(chars)-1)
  10. write(chars[rand])
  11. sleep(0.05)
  12. end
  13.  
  14. printer.setPageTitle("Random Shit")
  15. printer.endPage()
  16. else
  17. error("Could not create a page. Is there any paper and ink in the printer?")
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement