title: How to convert number string in an array to number in JavaScript?
body: <p>I want to use Fisher Yates shuffle algorithm to shuffle each integer from <code>Math.random()</code>after the ". (dot)". I split them into string and use the Fisher Yates shuffle algorithm but I am stuck on how to convert it back to number.</p>
  
  <p><strong>From:</strong> ["0", ".", "4", "1", "2", "7", "2", "9", "5", "8", "6", "7", "0", "7", "4", "2", "8", "1"]</p>
  
  <p><strong>To:</strong> 0.4127295867074281</p>
  
  <pre><code>    var randomNum = Math.random();
      var stringNum = randomNum.toString();
      var stringArray = stringNum.split("");
  
      var i = stringArray;
      var j;
      var temp;
  
      while (--i &gt; 1) {
          j = Math.floor(Math.random() * (i + 1));
          temp = stringArray[j];
          stringArray[j] = stringArray[i];
          stringArray[i] = temp;
      }
  </code></pre>