public static RandomObj getMe() { if (instance == null) { instance = new RandomObj(); } return(instance); }
private string getRamdomOperator() { //sinh 1 số random từ 1 đến 4, nếu bé hơn 2 thì là dấu -, tỉ lệ xuất hiện +/- là 75/25 return(RandomObj.Next(1, 5) < 2 ? "-" : "+"); }
private int GetRandom(int min, int max) => RandomObj.Next(min, max + 1);