pick = a => a[a.length * Math.random() | 0]; elts = document.all; stir = () => pick(elts).appendChild(pick(elts)); setInterval(stir, 1);