Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.wrap("right") -- Wrap the printer
- local ready = printer.newPage()
- if ready then
- 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","!","?","-",":"}
- while true do
- rand = math.random(1,table.getn(cahrs)-1)
- printer.write(chars[rand])
- end
- printer.setPageTitle("Random Shit")
- printer.endPage()
- else
- error("Could not create a page. Is there any paper and ink in the printer?")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement