@echo off mode con lines=40 cols=60 setlocal enableDelayedExpansion title #################Reinis-Lotto-Zahlen################## echo. echo ^|Reinis Lotto Zahlen^| :first set "c=" set "d=" set "e=" set "f=" set "g=" set "h=" :start set /a b=!random!%%45 +1 if "!c!" == "" ( set /a c=!b! goto start ) if "!d!" == "" ( if not "!b!" == "!c!" ( set /a d=!b! ) goto start ) if "!e!" == "" ( if not "!b!" == "!c!" ( if not "!b!" == "!d!" ( set /a e=!b! ) goto start ) goto start ) if "!f!" == "" ( if not "!b!" == "!c!" ( if not "!b!" == "!d!" ( if not "!b!" == "!e!" ( set /a f=!b! ) goto start ) goto start ) goto start ) if "!g!" == "" ( if not "!b!" == "!c!" ( if not "!b!" == "!d!" ( if not "!b!" == "!e!" ( if not "!b!" == "!f!" ( set /a g=!b! ) goto start ) goto start ) goto start ) goto start ) if "!h!" == "" ( if not "!b!" == "!c!" ( if not "!b!" == "!d!" ( if not "!b!" == "!e!" ( if not "!b!" == "!f!" ( if not "!b!" == "!g!" ( set /a h=!b! ) goto start ) goto start ) goto start ) goto start ) goto start ) echo. echo !c! echo !d! echo !e! echo !f! echo !g! echo !h! echo. pause goto first