Example #1
0
 private static IEnumerable<TestData> InitRandomNumbers(int count, int minValueSize, int maxValueSize)
 {
     var random = new RandomSequenceOfUnique(32);
     var enumerable = Enumerable.Range(0, count).Select(i => random.Next());
     var initRandomNumbers = InitValue(enumerable, minValueSize, maxValueSize);
     foreach (var initRandomNumber in initRandomNumbers)
     {
         yield return initRandomNumber;
     }
 }
Example #2
0
        private static IEnumerable <TestData> InitRandomNumbers(int count, int minValueSize, int maxValueSize)
        {
            var random            = new RandomSequenceOfUnique(32);
            var enumerable        = Enumerable.Range(0, count).Select(i => random.Next());
            var initRandomNumbers = InitValue(enumerable, minValueSize, maxValueSize);

            foreach (var initRandomNumber in initRandomNumbers)
            {
                yield return(initRandomNumber);
            }
        }