示例#1
0
        private Double[] GenerateRandomInput()
        {
            Double[] a = RandomAux.Randomize(size);

            RewriteInputTxt(size, a);

            return(a);
        }
示例#2
0
 private void randomizeBttn_Click(object sender, EventArgs e)
 {
     if (inputTxtb.Text.Length == 0)
     {
         ToBeSorted = GenerateRandomInput();
     }
     else
     {
         bool goodInput = true;
         ToBeSorted = RandomAux.Shuffle(ParseInputTextForCSV(ref goodInput));
         Debug.Assert(goodInput);    // can't be false - textbox passed Validating event
         RewriteInputTxt(ToBeSorted.Length, ToBeSorted);
     }
 }