Given what I've tried:
<html>
<body>
<script>
var nome = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
var remover = nome.slice(0);
function shuffle(array) {
return (Math.round(Math.random()) - 1);
remover.splice(array, 1);
}
shuffle(nome);
alert(nome);
</script>
</body>
</html>
But I did not know how to add a button for that purpose and still this code does not do the purpose.