Skip to content

Instantly share code, notes, and snippets.

@drasive
Created June 4, 2015 15:29
Show Gist options
  • Save drasive/8903812ab32a99940886 to your computer and use it in GitHub Desktop.
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.
@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