randRange( 1, 8 ) randRange( NUM_1 + 1, 9 )

What fraction of this circle is shaded red?

init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart( [NUM_1, DEN_1 - NUM_1], ["#e00", "#999"], 2 );

NUM_1 / DEN_1

Count the red slices for the numerator.

There plural( "is", NUM_1 ) plural( NUM_1, "red slice").

Count the total slices (\color{#e00}{\text{Red Slices}} + \color{#999}{\text{Gray Slices}}) for the denominator.

There are DEN_1 slices total.

So your answer should be \dfrac{\color{#e00}{NUM_1}}{\color{#666}{\text{DEN_1}}}.

What fraction of the bar is shaded red?

init({ range: [ [0, 1], [0, 1] ], scale: [250, 25] }); rectchart( [NUM_1, DEN_1-NUM_1], ["#e00", "#999"] );

NUM_1 / DEN_1

Count the red blocks for the numerator.

There plural( "is", NUM_1 ) plural( NUM_1, "red block").

Count the total blocks (\color{#e00}{\text{Red Blocks}} + \color{#999}{\text{Gray Blocks}}) for the denominator.

There are DEN_1 blocks total.

So your answer should be \dfrac{\color{#e00}{NUM_1}}{\color{#666}{\text{DEN_1}}}.