Example #1
0
        private void randomElem_Click(object sender, EventArgs e)
        {
            MassivIn.Clear();
            sizemas.Text = size.ToString();
            a            = new int[size];
            Random b = new Random();

            MassivIn.Text += "| ";
            for (int i = 0; i < size; ++i)
            {
                a[i]           = b.Next(10);
                MassivIn.Text += Convert.ToString(a[i]) + " | ";
            }
        }
Example #2
0
 private void reset_Click(object sender, EventArgs e)
 {
     sizemas.Clear();
     MassivIn.Clear();
 }