Клик.
<table id='music'>
<tr><td>1</td></tr>
<tr><td>к1</td></tr>
<tr><td>2</td></tr>
<tr><td>к2</td></tr>
<tr><td>3</td></tr>
<tr><td>к3</td></tr>
<tr><td>4</td></tr>
<tr><td>к4</td></tr>
<tr><td>5</td></tr>
<tr><td>к5</td></tr>
<tr><td>6</td></tr>
<tr><td>к6</td></tr>
<tr><td>7</td></tr>
<tr><td>к7</td></tr>
</table>
<script>
(function(){
var table=document.getElementById('music'), tr=table.getElementsByTagName('tr'), i=tr.length;
table=tr[0].parentNode; //ибо tbody итп
randomize = function(){
var arr=[].slice.call(tr), j=i, rand;
while(j--){
if(j%2) rand = Math.random()<.5;
table.insertBefore( arr[j], rand ? tr[0] : j%2 ? null : tr[i-1] )
}
}
})()
window.onclick=randomize;
</script>
Попробуй так, если не поможет нужен код.