@echo off
title The Matrix
color 0a
mode con: cols=100 lines=40
 
:: Hide cursor
for /f %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
 
cls
 
:matrix
setlocal enabledelayedexpansion
 
:: Characters to use (mix of letters, numbers, symbols for that matrix feel)
set "chars=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%%^&*!?><~"
set "len=66"
 
:: Build a random line of matrix characters
set "line="
for /l %%i in (1,1,100) do (
    set /a "idx=!random! %% len"
    for %%j in (!idx!) do (
        set "line=!line!!chars:~%%j,1!"
    )
)
 
echo !line!
 
endlocal
 
:: Small delay to control speed (lower = faster rain)
ping -n 1 -w 15 127.0.0.1 >nul 2>&1
 
goto matrix
 
