TeamBasedInquiryLearning / linear-algebra

ARCHIVED - Materials for running a Team-Based Inquiry Learning linear algebra course
https://tbil.org/library
Other
10 stars 12 forks source link

Remove randrange from lambda #306

Closed siwelwerd closed 10 months ago

siwelwerd commented 10 months ago

Closes #305. The randranges inside of the lambda defining the addition in this case were called each time the oplus function was called, generating different results each time. To achieve the desired behavior, one should call the randranges (and any other randomization) prior to defining the lambda.

This was done correctly in the other cases, so that's why the bug was isolated to the n==0 case.