function randomHeart() { hearts = new Array( '', '', '', '', '' ); return hearts[Math.floor(Math.random()*hearts.length)]; } document.write(randomHeart());