- @echo off
- :main
- set /a n=%random%%%10
- if %n%==0 goto main
- :y
- set /a m=%random%%%10
- if %m%==%n% (goto y) else (set /a b=10*m+n)
- :second
- set /a x=%random%%%10
- if %x%==%n% (goto second)
- if %x%==%m% (goto second) else (set /a b=100*x+b)
- :third
- set /a w=%random%%%10
- if %w%==0 (goto third)
- if %w%==%n% (goto third)
- if %w%==%m% (goto third)
- if %w%==%x% (goto third) else (set /a b=1000*w+b)
- echo %b%
- pause>nul
复制代码
|