/*-------------------------------------------------------------------*/ public static void GenerateRandomSortedSequence(string path, double min, double multiplier, int nOfNumbers) { EnumerableToFile( RandomOrderedDoubles.Generator(min, multiplier, nOfNumbers), path ); }
public void TestGeneratedArrayIsSorted() { const double min_value = 0; double old_item = min_value; IEnumerable <double> generator = (RandomOrderedDoubles.Generator(min_value, 100, 1000)); foreach (double item in generator) { Assert.Greater(item, old_item); } }