ThatGravyBoat

Untitled

Aug 12th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local characters = {
  2. "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=",
  3. "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "+"
  4. }
  5. local monitor = peripherals.find("monitor")
  6.  
  7. function getCharacter()
  8. return characters[math.random(1, #characters)]
  9. end
  10.  
  11. function render()
  12. for x = 1, 51 do
  13. for y = 1, 19 do
  14. monitor.setTextColor(colors.green)
  15. monitor.setCursorPos(x, y)
  16. monitor.write(getCharacter())
  17. end
  18. end
  19. end
  20.  
  21.  
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment