Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27573

"Random questions from category" are not very random

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      As explained in description

      Show
      As explained in description
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      If you have a question category with, say, 3 questions "A", "B", and "C", and you set up a quiz with a random question from this category, consecutive attempts won't be very different, as the algorithm that pick questions "randomly" picks first a (random) number of question "A", then another (random) number of question "B" and finally a (random) number of question "C". Then returns to "A".

      The net result is that consecutive attempts will be, for instance: AAAAAAAAABBBBCCCCCCAAAABBBBBBCCAA...

      Perhaps this could be fine if you have a lot of students and they aren't physically at the same place/classroom, but imagine a classroom with only 10 students: all of them can easily get the same question dataset, making "randomness" useless.

      I think random questions should be picked taking, for each attempt, a different random number between 1 and the number of questions in the category, and then assigning the chosen question to the attempt.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              orestes Orestes Mas
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: