randRange(1, 5) randRange(1, 5)
randRange(1, 4) randRange(NUM_1 + 1, 5)
randRange(1, 4) randRange(NUM_2 + 1, 5)
WHOLE_1 * DENOM_1 + NUM_1 WHOLE_2 * DENOM_2 + NUM_2 I_NUM_1 * I_NUM_2 DENOM_1 * DENOM_2 getGCD(I_NUM, I_DENOM) roundTowardsZero(I_NUM / I_DENOM) I_NUM % I_DENOM NUM_3 / getGCD(NUM_3, I_DENOM) I_DENOM / getGCD(NUM_3, I_DENOM)

Multiply, simplify to lowest terms, and write as a mixed number:

WHOLE_1fraction(NUM_1, DENOM_1, false, true) \times WHOLE_2fraction(NUM_2, DENOM_2, false, true)

WHOLE_3 + NUM_3_SIMP / DENOM_3_SIMP

\qquad = fraction(I_NUM_1, DENOM_1, false, true) \times fraction(I_NUM_2, DENOM_2, false, true)

\qquad = \dfrac{I_NUM_1 \times I_NUM_2}{DENOM_1 \times DENOM_2}

\qquad = fraction(I_NUM, I_DENOM)

\qquad = fractionReduce(I_NUM, I_DENOM)

\qquad = WHOLE_3 fractionReduce(NUM_3, I_DENOM)