I want to display random country flags next to each other, making sure they do not match. However, my specific case requires a unique solution for dealing with arrays:
function displayRandomFlags() {
var flagurls = ["ZPlo8tpmp/chi","cJBo8tpk6/sov","QyLo8tpkm/rus","68so8tpl4/pol","x1Ro8tplj/nor","TT3o8tplv/lit","IsZo8tpma/isr"];
var randomize = 'url("http://static.tumblr.com/zicio7x/'+flagurls[Math.floor(Math.random()*flagurls.length)]+'.png")';
var randomize2 = 'url("http://static.tumblr.com/zicio7x/'+flagurls[Math.floor(Math.random()*flagurls.length)]+'.png")';
document.getElementById("th1").style.backgroundImage = randomize;
document.getElementById("th2").style.backgroundImage = randomize2;