Implemented RandomGenerator.cs