In bash, I have an array containing a list of links, e.g.
http://xkcd.com/archive
http://what-if.xkcd.com/
http://blag.xkcd.com/
http://store.xkcd.com/
I also have a variable named $URL. I would like to set the variable $URL to a random item in the list.