Drawing random winners from quizes: Drupal Quiz Raffle

Drupal Quiz module allows administrators to create quizes for users. Quizes may include multiple questions with several types (selects, options, text fields, checkboxes). Every quiz is then rated based on score of every question.

We had a need to select random winners from quiz takers in order to simplify work for administrators. These are the requirements we had:

  • Easy raffle for each quiz
  • Some quizes haven't random winners - ability to assign winners manually

Therefore: Quiz Raffle module.

Raffle generation form
Generate winners from quiz takers.

Simply install Quiz Raffle and you will spot a new tab at each Quiz node. Quiz Raffle allows you to select how many winners you want, limit winners to minimum score and generate them.

Raffle results
Random winners.

Quiz Raffle is using random permutations algorithm to ensure enough randomness in users, especially for a low number of quiz takers. You can always clear the results (with a confirm form) and start over.

What about the second requirement - assign winners manually? Quiz Raffle is taking advantage of CCK, therefore the winners are stores as User Reference fields in Quiz node type. You don't like the winners (Hey! Randomness! :-) or want to select them manually? Just edit the quiz node and assign any winners you want.

Note: Quiz Raffle only works with non-anonymous quiz users.

Download

Quiz Raffle is GNU/GPL, available on Drupal.org. Download.
We are always available for custom modifications.

Jakub Suchý

Jakub is owner and founder of Dynamite Heads. Jakub is a member of Drupal Security Team and supports Czech Drupal community at Drupal.cz

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <tt>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Are you a robot?
Image CAPTCHA
Enter the characters shown in the image.