1
I have a file on .cmd
and I need it to generate random numbers with 10 algorithms. Like for example 9006100001 and 1579970319 randomly generated.
I currently have the following function generating random numbers based on team, of the system.
setlocal
for /f "skip=8 tokens=2,3,4,5,6,7,8 delims=: " %%D in ('robocopy /l * \ \ /ns /nc /ndl /nfl /np /njh /XF * /XD *') do (
set "dow=%%D"
set "month=%%E"
set "day=%%F"
set "HH=%%G"
set "MM=%%H"
set "SS=%%I"
set "year=%%J"
)
Of that function, I use only the %SS%
, is as close as I got to what I want so far, as I could create something similar to generate random numbers?
If possible, they could include a variation of this with alphanumeric characters*
It is an option, but the use of loop is something I intend to avoid if I can, my script is continuous execution, ie this function is used every x seconds. Anyway thank you.
– Florida