(view source code of random.bat as plain text)
@echo off
:: Random.bat, Version 1.00 for DOS:: Random number generator:: Written by Rob van der Woude:: http://www.robvanderwoude.com:::: Create temporary helper batch file to:: store hundredths of seconds in variableecho set random=%%9>>enter.bat
:: Store current time in temporary batch filever | time | date | find "Current" | find ")" > temp.bat
:: Store current time's hundredths of seconds in variablecall temp.bat
:: Remove helper filesdel temp.bat
del enter.bat
:: Display resultecho Random number: %random%
page last modified: 2025-10-11; loaded in 0.0048 seconds