title: Move values from one array to another and remove them
body: <p>I have a 20 number array. Now I pick (randomly) 5 of these and i wanna put them into another empty array. How can I do? And also, how can I hide them from the first array when they're displayed? Thank you all.</p>
  
  <pre><code>var tenNumbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 42, 178, 54, 76, 32, 12, 38, 154, 234];
  var randomNumbers = document.getElementById("demo");
  randomNumbers.innerHTML = tenNumbers[Math.floor(Math.random()*tenNumbers.length)];
  </code></pre>