Skip to content

Instantly share code, notes, and snippets.

@SibTiger
Created September 2, 2016 04:39
Show Gist options
  • Save SibTiger/f2c4bf12727181ee0adf3a78e998a837 to your computer and use it in GitHub Desktop.
Save SibTiger/f2c4bf12727181ee0adf3a78e998a837 to your computer and use it in GitHub Desktop.
Flood Terminal with 0's and 1's as quickly as possible in an endless loop
@ECHO OFF
GOTO :Main
:Main
CALL :RandomizedBinary
ECHO|SET /P=%ERRORLEVEL%
GOTO :Main
:RandomizedBinary
REM Fetch a random 0 or 1
SET /A RandNum=%RANDOM% %% 2
EXIT /B %RandNum%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment