title: Shuffles Random Numbers with no repetition in Javascript/PHP
body: <p>I've searched through some of the answers here but it doesn't seem the thing that I needed or I just don't know how to apply it though.</p>
  
  <p>I haven't started any codes and I'm only thinking on how to do it and I have no idea how to do it. I need your help guys. </p>
  
  <p>Let's assume that I have an array which consists of these values below</p>
  
  <pre><code>[1,2,3,4,5,6,7,8,9]
  </code></pre>
  
  <p>And I need to shuffle it without repeating the position of each numbers of the <strong>last result</strong>. so it would probably like</p>
  
  <pre><code>[5,3,9,6,2,8,1,4,7]
  </code></pre>
  
  <p>if I shuffle it again it would be like</p>
  
  <pre><code>[4,7,2,1,8,3,6,9,5]
  </code></pre>
  
  <p>And so on.</p>
  
  <p>Well I don't know if there' any relevance to it but, would rather not to use <strong>rand()</strong> though. Any solution for this stuff?</p>