CL Help: Random Generated Subtraction Problems with only Positive Solutions

Hello!

I am looking for some CL help modifying an awesome activity created by @JayChow . I am wanting to have the subtraction problems generate random single digit integers, but I want the first integer to be larger than the second so that only positive solutions are produced, to make this activity more accessible for younger maths students.

Anyone have any advice?

Here is the link to what I have managed so far:

In the subNote CL, you can change the line to read:

r2 = r.int(0,r1)

so the maximum possible value will be whatever was chosen for the first number.

2 Likes

Ah! Excellent! Thanks so much, @Daniel_Wekselgreene .

1 Like