private void Randomizer() { FastCheck fc = new FastCheck(); Point[] a = new Point[] { PointsAndRectangles.r1, PointsAndRectangles.r2, PointsAndRectangles.r3, PointsAndRectangles.r4, PointsAndRectangles.r5, PointsAndRectangles.r6, PointsAndRectangles.r7, PointsAndRectangles.r8, PointsAndRectangles.r9, PointsAndRectangles.r10 }; Random rand = new Random(); while (!fc.ItsGarage()) { Thread.Sleep(2000); } if ((Condition.ConditionNumber1 == "экстремальная" && Condition.eventrq < 320) ||//условие определееной редкости (Condition.ConditionNumber1 == "редкостная" && Condition.eventrq < 195) || (Condition.ConditionNumber1 == "необычная" && Condition.eventrq < 145) || (Condition.ConditionNumber1 == "суперская" && Condition.eventrq < 245) || Condition.eventrq < 95) { NotePad.DoLog("сортирую по рк"); Thread.Sleep(200); do { Rat.Clk(PointsAndRectangles.sorting); //сортировка Thread.Sleep(1000); } while (!fc.TypeIsOpenned()); //100% SorterOpenner Thread.Sleep(200); Rat.Clk(PointsAndRectangles.clearall); //сброс Thread.Sleep(1000); Rat.Clk(PointsAndRectangles.sorting); //сортировка Thread.Sleep(1000); Rat.Clk(PointsAndRectangles.r2); //сортировка по рк } else { Thread.Sleep(200); do { Rat.Clk(PointsAndRectangles.sorting); //сортировка Thread.Sleep(1000); } while (!fc.TypeIsOpenned()); //100% SorterOpenner Thread.Sleep(200); int r = rand.Next(10); if (rand.Next(2) == 1) { Rat.Clk(a[r]);//выбрать условие Thread.Sleep(200); } Rat.Clk(a[r]);//выбрать условие } Thread.Sleep(500); do { Rat.Clk(PointsAndRectangles.closesorting); //закрыть сортировку Thread.Sleep(500); } while (fc.TypeIsOpenned()); //100% SorterCloser Thread.Sleep(4000); }