Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.acomputerdog.PPII;
- import java.util.Random;
- public class Matrix {
- public static void main(String[] args) {
- Random random = new Random("Null".hashCode());
- while (true) {
- for (int count = 0; count < 80; count++) {
- if (random.nextInt(4) == 0) {
- System.out.print((char)(97 + random.nextInt(26)));
- } else {
- System.out.print(' ');
- }
- }
- System.out.println();
- try {
- Thread.sleep(10);
- } catch (InterruptedException ignored) {
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment