private Double[] GenerateRandomInput() { Double[] a = RandomAux.Randomize(size); RewriteInputTxt(size, a); return(a); }
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); } }