var content = new Array(); content[0] = ''; content[1] = ''; var key = Math.floor(Math.random()*content.length); document.write(content[key]);