QUOTE(gabehabe @ 30 Aug, 2008 - 10:15 AM)

You're looking to make
one random number between 1 and 7, and perform an if statement to output one particular thing, correct?
set /a var = %random% %% 7The available numbers will be:
0, 1, 2, 3, 4, 5, 6
So, perform an
if on each of those to determine what needs to be performed.
I'm off until tomorrow now, but I'll check back to this thread as soon as I come back.
Edit:My bad~ I told you it's been a while. Here, this should work to give you an idea:
CODE
@echo off
set /a var = %random% %% 5
if %var%==0 (echo windy)
if %var%==1 (echo sunny)
if %var%==2 (echo you got struck by lightning)
if %var%==3 (echo it's raining cats and dogs!)
if %var%==4 (echo better wear your sun cream!)
pause
Hope this helps

Hmmm well ok ok so i think there is another problem now LOL Why does it happen to me LOL
ok i will paste what it shows up
QUOTE
You sure you want to quit?Type Yes Or No
No
Please enter event type
weather
dissaster
(Press Space To QUIT)
weather
You Chose Weather
Press any key to continue . . .
The syntax of the command is incorrect.
The syntax of the command is incorrect.
Press any key to continue . . .
Ok so now the syntax is wrong let me try to figure this one out this time if not i will edi tthis post and tell if it worked or not after a few minor adjustments
!!!!!!!!!!!! IT WORKS yay i am so happy thank you so much but i think i am going to make a v2 because the way you represented the example gave me an idea thank you so much!!!!!
I am clicking on you this post was helpfull whatever it does!!
This post has been edited by coaster3000: 30 Aug, 2008 - 07:49 AM