기금넷 공식사이트 - 복권 조회 - 2색 공 난수 계산기를 만들기 위한 일괄 처리

2색 공 난수 계산기를 만들기 위한 일괄 처리

요구사항을 충족하는지 모르겠습니다. . .

코드는 다음과 같습니다:

@echo off

set /p del=excluded 빨간색 코드 또는 파란색 말, 쉼표로 구분(예: 03, 21) :

set /p need=빨간색 코드나 파란색 말이 있어야 하며 쉼표로 구분되어 있어야 합니다(예: 22,01):

set /a n=0

설정 /a neex=0

설정 /a neey=0

설정 /a neex=%need:~0,2%

설정 / a neey=%need:~3,2%

set /a delx=%del:~0,2%

set /a dely=%del:~3, 2 %

:a

설정 /a h1=%random%%%33+1

설정 /a h2=%random%%%33+ 1

설정 /a h3=%random%%%33+1

설정 /a h4=%random%%%33+1

설정 / a h5=%random%%%33+1

설정 /a h6=%random%%%33+1

%h1%==%delx% goto a< / p>

if %h2%==%delx% goto a

if %h3%==%delx% goto a

if %h4%==%delx % goto a

if %h5%==%delx% goto a

if %h6%==%delx% goto a

if /i % neex % gtr 0이 아닌 경우 %h1%==%neex%가 아닌 경우 %h2%==%neex%가 아닌 경우 %h3%==%neex%가 아닌 경우 %h4%==%neex%가 아닌 경우 %h5%= = %neex% 그렇지 않은 경우 %h6%==%neex% goto a

:b

set /a l1=%random%%%16+1

if %l1%==%dely% goto b

if /i %neey% gtr 0 if not %l1%==%neey% goto b

에코 빨간 공 : %h1% %h2% %h3% %h4% %h5% %h6% 농구: %l1%>>Lottery.txt

set /a n=%n%+1

if /i %n% lss 50 goto a

일시 중지