Confirmation constructor
Confirmation()
Implementation
Confirmation() {
var smaller = _random(1, 100);
var bigger = _random(smaller, 100);
int operationIndex = _random(0, 2);
switch(operationIndex) {
case 0:
operation = Operation.addition;
leftInput = bigger;
rightInput = smaller;
break;
case 1:
operation = Operation.subtraction;
leftInput = bigger;
rightInput = smaller;
break;
case 2:
operation = Operation.multiplication;
leftInput = bigger;
rightInput = smaller;
break;
}
}