Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Filtering questions and response lists > Filtering loops > Random filtering for loops
 
Random filtering for loops
You can enhance your basic filtering by asking questions at random. Typical examples are:
You want to execute the loop once only for a value selected at random from the loop’s control list. See Repeat a loop once for a randomly selected value.
You want to ask questions about a random selection of answers given to a previous question. See Using random answers from those chosen at a previous question.
There are various ways of meeting these requirements, and this topic shows two of the easiest and most efficient methods. Both methods use a loop that defines the questions to be asked and whose control list contains all items about which the questions might be asked. The differences are where the randomization happens and the way in which the loop control list is filtered to restrict the items about which the questions are asked.
See also
Filtering loops