Tuesday, March 17, 2015

Finished

Literally 3 minutes after I posted the blog post last night about the number generator I finished making it.  I was to lazy to go back on my blog and repost it so I just saved it for today.  Here is the code.  It is a batch file so save it as .bat

@echo off
set aa = 0
title Number Generator
cd %userprofile%/documents
:1
cls
color 0a
@echo Your number file will appear in your documents folder.
pause
:2
cls
@echo Generating Numbers .
timeout /T 1 >nul
cls
@echo Generating Numbers . .
timeout /T 1 >nul
cls
@echo Generating Numbers . . .
timeout /T 1 >nul
cls
set /a aa=%aa%+1
if /i %aa% EQU 3 goto 3
goto 2
:3
cls
echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random% >randomNumbers.txt
@echo Your numbers have been generated.  Check your documents and you will find it.
pause
exit

No comments:

Post a Comment