public static void Main(string[] args) { Random randomObj = new Random(); Console.WriteLine("Generating Histogram from 0 to 1.0..."); Histogram myHistogram = new Histogram(0, 1); for (int i = 0; i < 10000; i++) { myHistogram.Add(randomObj.NextDouble()); } myHistogram.PlotFrequency(); myHistogram.PlotCumulative(); Console.WriteLine("Resetting the Histogram..."); myHistogram.Reset(); Console.WriteLine("Generating Histogram from 0 to 10..."); myHistogram = new Histogram(0, 10); for (int i = 0; i < 1000; i++) { double temp = 0; for (int j = 0; j < 10; j++) { temp += randomObj.NextDouble(); } myHistogram.Add(temp); } myHistogram.PlotFrequency(); myHistogram.PlotCumulative(); }