Sorry if this has been asked before, I couldn't find anything though specifically for this.
I have a list.txt with a new word on each line, like
do
re
me
fa
something
somethingelse
How can I grab a random word (assuming the list has a random amount of lines)and set it as a %variable%?
I'm pretty sure I would need the "for" command but I've got no idea how to use it lol
Thanks
Edit: my bad I should've specified this is in Windows Batch