I want to create a script that goes to a random url (english, french, and spanish, are just examples of url endings and not actual urls). There are probably better way to set variables, but I need it to be in this particular way because of the way the rest of the code is set up.
REM define list entries
set list[0]=english
set list[1]=french
set list[2]=spanish
REM create a random number, smaller than the list's length
set /a randomNum=(%RANDOM%*3/32768)
start "" http://youtube.com/%list[%randomNum%]%
This goes to youtube.com/randomNum
, and not the value of the variables I set.
Any help getting it to go to youtube.com/english
etc.?