public static string GetGroupName() { char letter = BL_Random.GetLetter(BL_Random.rnd.Next(0, 21)); int number = BL_Random.rnd.Next(1024, 2049); string result = letter.ToString() + " - " + number.ToString(); return(result); }
public static Mark GetRandomMark() { string subject = BL_Random.GetSubject(BL_Random.rnd.Next(0, 10)); DateTime date = BL.GetRandomEnterDate(); byte value = (byte)BL_Random.rnd.Next(2, 6); Mark rndMark = new Mark(subject, date, value); return(rndMark); }
public bool IsValidSubject(string subject) { bool result = true; for (int i = 0; i < 10; i++) { if (!(BL_Random.GetSubject(i) == subject)) { result = false; } } return(result); }
public static string GetRandomLastName() { string rndLastName = BL_Random.GetLastName(BL_Random.rnd.Next(0, 20)); return(rndLastName); }