How to Limit the Generation of Random Data?
Hello, everyone,
I'd like to ask for another help with this other problem:
1- Attached is a construction that has 2 indices:
1.1 idx = AleatoryNumber(1,8) - choose a regular polygon from the list1
1.2 idy = AleatoryNumber(1,2) - choose a question, from 2 drop-down lists
2- I would like random data generation to be limited. I'll explain:
Every time the question or file is opened there is random data generation.
So when the Applet is loaded in Moodle and the student opens it to answer, the random generation draws a regular polygon and a question for him.
After the question is answered if I click on it new random data is generated and I don't know which polygon and initial question were drawn for the student.
Is there any way to limit this random data generation?
Thank you very much, Marcelo.
For me is not really clear what you want reaching.
But maybe the attachment will help.
It contains only the principle for the following request:
At the beginning and with each new question the student receives a random selection of the questions, which is repeated after 8 new questions at the earliest. The generation of the random values is inside of scripts, so that UpdateConstruction() / Ctrl+R / F9 have no influence. The most important command used is Shuffle() in the button "Reset".
Maybe this command is also interesting:
Unfortunately, I don't know anything about Moodle.
But anyway: the step to a new task should not be done with Strg-R or F9, but the new random values must be set in a script (This requires that idx and idy are free objects)
Someone (student, teacher or Moodle) must trigger this script.
Comments have been locked on this page!