randRange( 2, 9 )
randRange( 10, 99 )
randRange( 1, DIVISOR - 1 )
DIVISOR * QUOTIENT + FINAL_REMAINDER
integerToDigits( DIVIDEND )
If the answer is a quotient of 5 and a remainder of 3, it should be typed in the form "5 R 3".
graph.divider = new Divider( DIVISOR, DIVIDEND ); graph.divider.show(); DUMMY = Array( graph.divider.getNumHints() );
^
QUOTIENT
\s*[rR]\s*
FINAL_REMAINDER
$
graph.divider.showHint();
drawDigits( [ "\\text{R}" ].concat( integerToDigits( FINAL_REMAINDER ) ), DIVIDEND_DIGITS.length, 1 );