T
Taddio
Guest
I'm a bit confused, I have this pretty simple piece of code to create a random math formula, but I'm missing the right function to get the operators working.
real(_oper) doesn't work (that was expected, as + is not a number), but I just can't find the right function to convert it to an actual operator.
Any ideas are very welcome.
Code:
var _num1 = irandom(5):
var _num2 = irandom(10)
var _oper = choose(" + ", " - ");
var _formula = string(_num1)+_oper+string(_num3);
var _answer = _num1 + ?????(_oper) + _num3;
Any ideas are very welcome.