public string GetNextAssignment() { string assignment; if (eenTafel) { multiplier = tableOf; } else { multiplier = randomGenerator.GetRandomNumberBetween(1, tableOf); } int randomValue = multiplicand; while (multiplicand == randomValue) { randomValue = randomGenerator.GetRandomNumberBetween(1, 10); } multiplicand = randomValue; assignment = multiplicand.ToString() + " x " + multiplier.ToString(); return(assignment); }
public string GetNextAssignment() { string assignment; if (eenTafel) { denominator = tableOf; } else { denominator = randomGenerator.GetRandomNumberBetween(1, tableOf); } int randomValue = quotient; while ((quotient * denominator) == (randomValue * denominator)) { randomValue = randomGenerator.GetRandomNumberBetween(1, 10); } quotient = randomValue; assignment = (quotient * denominator).ToString() + " : " + denominator.ToString(); return(assignment); }
public string GetNextAssignment() { string assignment = ""; operand2 = randomGenerator.GetRandomNumberBetween(counterMin, counterMax); operand1 = randomGenerator.GetRandomNumberBetween(counterMin, upperLimit - operand2); assignment = operand1.ToString() + " + " + operand2.ToString(); return(assignment); }
public string GetNextAssignment() { string assignment = ""; operand2 = randomGenerator.GetRandomNumberBetween(counterMin, counterMax); operand1 = randomGenerator.GetRandomNumberBetween(counterMin, upperLimit); if (operand2 > operand1) { int x = operand1; operand1 = operand2; operand2 = x; } assignment = operand1.ToString() + " - " + operand2.ToString(); return(assignment); }