Randomizing the number of questions picked from a bank

Aug 10, 2020

Hello all,

I was wondering if there was any way in which i could draw a random number of questions from a bank?

So basically ask Storyline to draw 0, 1 or 2 questions from Bank 1?

I'm assuming that the standard Storyline 'Draw from bank' settings would superseed any custom logic using the random number variable?

Any help appreciated.

Hiten

3 Replies
Leslie McKerchie

Hello Hiten,

Thanks for contacting us and sharing what you would like to create with your project.

Can I draw a random number of questions from a bank?

Yes, you can. 

  1. Mark the box to Draw questions randomly.
  2. Use the Include drop-down to choose how many questions you'd like to draw from the question bank.

Can Storyline draw 0, 1 or 2 questions from Bank 1?

There is not any built-in functionality to randomize the number of questions you include from each question bank.

If anyone in the community has any design ideas or custom logic to share, I look forward to seeing it.

OWEN HOLT

Skip the built in question bank. Build all of your questions in a quiz scene (creating your own bank). Use random numbers to:

  1. set the number of questions to pull and 
  2. draw random questions until that number has been reached.

There are numerous posts on using JavaScript to do the random draw stuff but the built in variable might work well enough for you. (See this thread for example: LINK)

Hiten Hirani

Thanks Owen. I used a similar approach to the one you described.

1. I used the Question bank to randomize all the questions
2. then i used the random number variable to pull myself out of the question bank once this number had been reached.

I've attached the .storyline file if anyone finds it useful.

This discussion is closed. You can start a new discussion or contact Articulate Support.