DerMarten

Test

Jul 27th, 2015
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local printer = peripheral.wrap("right") -- Wrap the printer
  2. local ready = printer.newPage()
  3.  
  4. if ready then
  5. 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","!","?","-",":"}
  6. while true do
  7. rand = math.random(1,table.getn(cahrs)-1)
  8. printer.write(chars[rand])
  9. end
  10.  
  11. printer.setPageTitle("Random Shit")
  12. printer.endPage()
  13. else
  14. error("Could not create a page. Is there any paper and ink in the printer?")
  15. end
RAW Paste Data