This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
/* | |
C# implementation of Fisher-Yates shuffling with automatic reshuffling. | |
This class can be used to generate a series of numbers from 0 to ``numElements`` that is guaranteed | |
not to repeat. The array is automatically reshuffled when all elements have been picked. | |
*/ | |
public class FisherYatesShuffling |