/// <summary> /// 六年级 /// </summary> /// <returns></returns> internal static string SixGrade() { string ret = RandomDigit(0, 3); for (int i = 0; i < random.Next(2, 4); i++) { ret += RandomSymbols.Operators(1, 5) + RandomDigit(0, 3); } return(ret); }
/// <summary> /// 四年级 /// </summary> /// <returns></returns> internal static string FourGrade() { string equation = RandomSymbols.Integer(1, 1000); for (int i = 0; i < 3; i++) { equation += RandomSymbols.Operators(1, 5) + RandomSymbols.Integer(1, 1000); } return(equation); }
/// <summary> /// 五年级 /// </summary> /// <returns></returns> internal static string FiveGrade() { if (random.Next(1, 3) == 1) { return(RandomSymbols.Decimals(1, 100, 1, 100) + RandomSymbols.Operators(1, 5) + RandomSymbols.Integer(1, 100)); } if (random.Next(1, 3) == 2) { return(RandomSymbols.Integer(1, 100) + RandomSymbols.Operators(1, 5) + RandomSymbols.Decimals(1, 100, 1, 100)); } return(RandomSymbols.Decimals(1, 100, 1, 100) + RandomSymbols.Operators(1, 5) + RandomSymbols.Decimals(1, 100, 1, 100)); }
/// <summary> /// 三年级 /// </summary> /// <returns></returns> internal static string ThreeGrade() { return(RandomSymbols.Integer(10, 100) + RandomSymbols.Operators(3, 5) + RandomSymbols.Integer(10, 100)); }
/// <summary> /// 二年级 /// </summary> /// <returns></returns> internal static string SecondGrade() { return(RandomSymbols.Integer(10, 100) + RandomSymbols.Operators(1, 3) + RandomSymbols.Integer(10, 100)); }
/// <summary> /// 一年级 /// </summary> internal static string FirstGrade() { return(RandomSymbols.Integer(0, 20) + RandomSymbols.Operators(1, 3) + RandomSymbols.Integer(0, 20)); }