public string Equation()
{
string _operation = operations[(int)Random.Range(0,(operations.Count-1))] as string;
int temp = (int)Random.Range(0,10);
switch(_operation){
case "+":
EqFormat(temp,_operation);
operation = EquationOperation.ADDITION;
break;
case "-":
EqFormat(temp,_operation);
operation = EquationOperation.SUBTRACTION;
break;
case "x":
if(temp<1) temp = (int)Random.Range(1,9);
EqFormat(temp,_operation);
operation = EquationOperation.MULTIPLICATION;
break;
case "/":
while(true){
if(!solution.Equals(0) && !temp.Equals(0)) break;
solution = (int)Random.Range(1,9);
temp = (int)Random.Range(1,9);
}
EqFormat(temp,_operation);
operation = EquationOperation.DIVISION;
break;
default: //wtf
break;
}
return equation;
}