Created
June 4, 2015 15:29
-
-
Save drasive/8903812ab32a99940886 to your computer and use it in GitHub Desktop.
Outputs random 1's and 0's to the console, like in the movie Matrix.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
:setup | |
color 02 | |
:execute | |
set line= | |
for /L %%i in (1,1,80) do ( | |
set /a "number=!random! &1" | |
set line=!line!!number! | |
) | |
echo !line! | |
goto execute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment