Please help contribute to the Reddit categorization project here

    Juthorian

    + friends - friends
    6,042 link karma
    831 comment karma
    send message redditor for

    [–] How do I generate random letters in CMD like in the movies? Juthorian 9 points ago in learnprogramming

    Open up notepad and copy paste this in and save it as <something>.bat

    @Echo Off
    color A
    Setlocal EnableDelayedExpansion
    Set _RNDLength=8
    Set _Alphanumeric=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
    Set _Str=%_Alphanumeric%987654321
    :_LenLoop
    IF NOT "%_Str:~18%"=="" SET _Str=%_Str:~9%& SET /A _Len+=9& GOTO :_LenLoop
    SET _tmp=%_Str:~9,1%
    SET /A _Len=_Len+_tmp
    Set _count=0
    SET _RndAlphaNum=
    :_loop
    Set /a _count+=1
    SET _RND=%Random%
    Set /A _RND=_RND%%%_Len%
    SET _RndAlphaNum=!_RndAlphaNum!!_Alphanumeric:~%_RND%,1!
    If !_count! lss %_RNDLength% goto _loop
    Echo !_RndAlphaNum!
    goto _loop
    

    Now run it!

    [–] Jack Black becomes a PS1 character Juthorian 1 points ago in funny

    Looks like Steven Adams on OKC