public void load(aRandomNumberGenerator obj_2)
        {
            chart1.Series.Clear();
            chart1.Titles.Clear();
            chart1.ChartAreas.Clear();
            listBox_numbers.Items.Clear();

            obj_1 = obj_2;
            data  = new int[37];
            sum   = 0;
            label_total_gen.Text = sum.ToString();
            show_numbers         = true;
            button_see.Enabled   = false;
            button_clear.Enabled = true;

            label_total_gen.Text = obj_1.High.ToString();

            chart1.ChartAreas.Add("a");
            chart1.ChartAreas[0].AxisX.Minimum  = obj_1.Low;
            chart1.ChartAreas[0].AxisX.Maximum  = obj_1.High;
            chart1.ChartAreas[0].AxisX.Interval = 1;
            chart1.ChartAreas[0].AxisY.Minimum  = 0;
            chart1.ChartAreas[0].AxisY.Interval = 10;

            Series ser1 = new Series("count");

            chart1.Series.Add(ser1);
            chart1.Series["count"].Points.AddXY(0, 0);
            chart1.Series["count"].SmartLabelStyle.Enabled = true;
            // format chart
            chart1.Titles.Add("Psuedorandom Number Generator for a " + obj_1.Type);
            chart1.ChartAreas[0].AxisX.Title = "possible numbers";
            chart1.ChartAreas[0].AxisY.Title = "number of times generated";
            this.Text = "Histogram for " + obj_1.Type + " Object";

            // load previous data
            load_previous_data();
            // sum total numbers generated
            label_total_gen.Text = sum.ToString();
        }
        public void load(aRandomNumberGenerator obj_2)
        {
            chart1.Series.Clear();
            chart1.Titles.Clear();
            chart1.ChartAreas.Clear();
            listBox_numbers.Items.Clear();

            obj_1 = obj_2;
            data = new int[37];
            sum = 0;
            label_total_gen.Text = sum.ToString();
            show_numbers = true;
            button_see.Enabled = false;
            button_clear.Enabled = true;

            label_total_gen.Text = obj_1.High.ToString();

            chart1.ChartAreas.Add("a");
            chart1.ChartAreas[0].AxisX.Minimum = obj_1.Low;
            chart1.ChartAreas[0].AxisX.Maximum = obj_1.High;
            chart1.ChartAreas[0].AxisX.Interval = 1;
            chart1.ChartAreas[0].AxisY.Minimum = 0;
            chart1.ChartAreas[0].AxisY.Interval = 10;

            Series ser1 = new Series("count");
            chart1.Series.Add(ser1);
            chart1.Series["count"].Points.AddXY(0, 0);
            chart1.Series["count"].SmartLabelStyle.Enabled = true;
            // format chart
            chart1.Titles.Add("Psuedorandom Number Generator for a " + obj_1.Type);
            chart1.ChartAreas[0].AxisX.Title = "possible numbers";
            chart1.ChartAreas[0].AxisY.Title = "number of times generated";
            this.Text = "Histogram for " + obj_1.Type + " Object";

            // load previous data
            load_previous_data();
            // sum total numbers generated
            label_total_gen.Text = sum.ToString();
        }