Skip to content

Make sure foil randomization cannot be correct.#1438

Open
somiaj wants to merge 2 commits into
openwebwork:mainfrom
somiaj:fix-dmoi-1_4_extra-03
Open

Make sure foil randomization cannot be correct.#1438
somiaj wants to merge 2 commits into
openwebwork:mainfrom
somiaj:fix-dmoi-1_4_extra-03

Conversation

@somiaj

@somiaj somiaj commented May 29, 2026

Copy link
Copy Markdown
Contributor

It is possible that one of the foils produces the correct answer. This will randomize values in a loop until the foil is guaranteed to not give the correct answer.

A second issue was brought to my attention. One of the draggable proof problems had the same statement listed twice. This was because the wrong variable was being used for the extra statement. I believe the problem should have used the incorrect statement for the extra incorrect statements.

somiaj added 2 commits May 29, 2026 14:31
It is possible that one of the foils produces the correct answer.
This will randomize values in a loop until the foil is guaranteed
to not give the correct answer.
The same statement was included twice in a draggable proof
problem, this was because the extra statements should have
used the statement from the incorrect randomization not the
correct randomization.
@somiaj

somiaj commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

@oscarlevin I think these are your problems, so hoping you can double check I fixed them properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant