You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some generators, the random value of the second value is limited by the random value of the first generated value. This can cause a bad distribution of generated problems, such as the second addend in addition() being on average, less than the first addend.
I think that the best way to fix this is to get rid of things like maxSum and generate terms independent of each other, but this may restrict use cases like elementary students who can only do single term addition not being able to generate problems with terms greater than 4 since you could generate two 5s and get a sum of 10.
The text was updated successfully, but these errors were encountered:
biased_result = [biasedaddition() for in range(1000)]
balanced_result = [balancedaddition() for in range(1000)]
biased_average = sum(addend[1] for addend in biased_result) / len(biased_result)
balanced_average = sum(addend[1] for addend in balanced_result) / len(balanced_result)
For some generators, the random value of the second value is limited by the random value of the first generated value. This can cause a bad distribution of generated problems, such as the second addend in
addition()
being on average, less than the first addend.I think that the best way to fix this is to get rid of things like
maxSum
and generate terms independent of each other, but this may restrict use cases like elementary students who can only do single term addition not being able to generate problems with terms greater than 4 since you could generate two 5s and get a sum of 10.The text was updated successfully, but these errors were encountered: