I have code for a number generator, that randomly selects numbers between 1 and 30. I want to use a batch file to make the dinner selections for each week so I don't have to do it myself. My problem is that I don't know how to assign the dinner names to the numbers, then i want it to check if the dinners meet a 'dinner rating', this makes sure that the dinner is healthy enough, if it doesn't meet the rating then the code will/should make it re-pick the dinners. This is the number generator: (don't tell me that i could do it a better way, I'm sort of a noob)
@echo off
echo.
echo Welcome %username%
ping localhost -n 2 >nul
echo This Is The Dinner Selector.
ping localhost -n 2 >nul
echo This Program Will Select The Weekly Dinner.
ping localhost -n 2 >nul
set /a selection1=%random% %%30 +1
set /a selection2=%random% %%30 +1
set /a selection3=%random% %%30 +1
set /a selection4=%random% %%30 +1
set /a selection5=%random% %%30 +1
echo %selection1%
echo %selection2%
echo %selection3%
echo %selection4%
echo %selection5%
Please help me find a solution to my problem, i am bored of picking healthy dinners by my self.