Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WIDTH = 100;
- cols = uint8(rand(1, WIDTH)*2);
- disp(cols);
- while %t
- cols(uint8(rand()*WIDTH)+1) = uint8(rand()*2);
- for i=1:WIDTH
- if cols(i) == uint8(1) then
- printf("%c", ascii(32+(126-32)*rand()));
- else
- printf(" ");
- end
- end
- sleep(50);
- printf("\n");
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement