Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 三年级
 /// </summary>
 /// <returns></returns>
 internal static string ThreeGrade()
 {
     return(RandomSymbols.Integer(10, 100) + RandomSymbols.Operators(3, 5) + RandomSymbols.Integer(10, 100));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 二年级
 /// </summary>
 /// <returns></returns>
 internal static string SecondGrade()
 {
     return(RandomSymbols.Integer(10, 100) + RandomSymbols.Operators(1, 3) + RandomSymbols.Integer(10, 100));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 一年级
 /// </summary>
 internal static string FirstGrade()
 {
     return(RandomSymbols.Integer(0, 20) + RandomSymbols.Operators(1, 3) + RandomSymbols.Integer(0, 20));
 }