# Randomly select question (vignettes) from a set

Hi Support Team,

We have a vignette subsection in our questionnaire wherein there are 4 different scenarios as follows:

Story 1: Ernesto is 3 years old and lives in a typical rural part in the Philippines. Both of Ernesto’s parents are tall. They are well off, but do not buy sufficient and nutritious food for the family. Do you think Ernesto is likely to be stunted as a child?

Story 2: Benilda is 3 years old and lives in a typical rural part in the Philippines. Both of Benilda’s parents are tall. They are poor, but do not buy sufficient and nutritious food for the family. Do you think Benilda is likely to be stunted as a child?

Story 3: Benjie is 3 years old and lives in a typical rural part in the Philippines. Both of Benjie’s parents are tall. They are well off, and buy sufficient and nutritious food for the family. Do you think Benjie is likely to be stunted as a child?

Story 4: Tala is 3 years old and lives in a typical rural part in the Philippines. Both of Tala’s parents are tall. However, they are poor, but buy sufficient and nutritious food for the family. Do you think Ernesto is likely to be stunted as a child?

Is it possible to display randomly just 1 story for each household to be interviewed? If so, how do we go about that syntax. Grateful for your guidance.

Best,
Shanna

Hello Shanna,

this can be done as 4 separate static texts with enabling conditions based on the random number.
for example `Quest.IRnd()>=0.25 && Quest.Irnd<0.50` for the second story.

Note also that in your story #2 instead of “but” better use “and” like you’ve done in story #3 since there is no contradiction.

Best, Sergiy

It can also be done using the same logic with the single select question if you plan an answer to be yes/now.

Sergiy’s suggestion is more general as the standard single-select question has a limitation on the length of the text of 500 characters. It works in your case, but for the longer texts, the static text should be used.

Hi Sergiy/Misha,

If there will be more than 6 questions then how to calculate the ratio from 100% and indicate them in “Quest.IRand”. Example:

Q18: How much do you know about [INSERT AND RANDOMIZE] ?
a. the Hindu religion and its practices
b. the Muslim religion and its practices
c. the Christian religion and its practices
d. the Jain religion and its practices
e. the Sikh religion and its practices
f. the Buddhist religion and its practices

``````   OPTIONS:
1     A great deal
2     Some
3     Not very much [OR]
4     Nothing at all
98   Don’t know (DO NOT READ)