title: Fisher–Yates shuffle in C#
body: <p>I have this method <code>Shuffle</code> that supposes to return a set of random numbers which was displayed in the above method but the numbers need to be displayed in a mixed format.
  The first method works well since the number are being displayed correctly in the set of range but this method Shuffle is not returning them in a mixed format. </p>
  
  <p>Example:</p>
  
  <p>The first method returned: <code>1, 2, 3, 4, 5</code></p>
  
  <p>This method needs to return <code>2, 1, 4, 5, 3</code></p>
  
  <pre><code>    public int[] Shuffle(int[] Sequence)
      {
          int[] Array = new int[Sequence.Length];
  
          for(int s=0; s &lt; Array.Length-1; s++){
             int GenObj = GenerateAnotherNum (0, Array.Length + 1);
  
              Array[s] = Sequence[GenObj];
              Sequence[GenObj] = Array[s];
          }
          return Sequence;
      }
  </code></pre>