title: getting random element from array returns same element
body: <p>Please refer below code.</p>
  
  <pre><code>for (var i = 0; i &lt; elements.length; i++) 
  {
       //var element = elements[Math.floor(Math.random()*elements.length)];
       this.animateSymbol(elements[Math.floor(Math.random()*elements.length)]);
  }
  </code></pre>
  
  <p>elements array contains list of svg elements(circle/path/ellipse etc). I want to select the random element from elements array.</p>
  
  <p>it's return the same element in some cases I want to select the element randomly no need to select the same element again. Need to select different element from that array.</p>
  
  <p>What's the problem ? Why its returning same index and same element ?</p>
  
  <p>Thanks,</p>
  
  <p>Siva</p>