Count Random Object in region

Yu Wing Ha shared this question 1 month ago
Needs Answer

Hello everyone!

Could you please help me to solve the following problem?

I'm creating a division game for Primary school students, they are going to drag some objects into the region according to the formula Div(x,y).

For example

x=20

y=4

Div (20,4)

then the student has to drag 5 random objects into the region.


Someone suggested me to use the IsInRegion Command, however, it only counts specific object but not random object.

Thank you for your help!

Comments (1)

photo
1

create a list L with all random objects


then use length(keepif(isinregion(P,<nameofregion>),P,L))

© 2021 International GeoGebra Institute