Random Selection
Random selection results remain consistent until survey submission to ensure each respondent sees the same questions. To test different random results, use multiple devices or submit the survey.
Random Question Selection
Randomly select n questions to display
Example
- Q1. A
Q1
- Q2. B
Q2
- Q3. C
Q3
- Q4. D
Q4
Custom Logic
random show 2 from Q1~4 # Randomly select 2 questions from 4
Preview
Random Page Selection
Randomly select n pages to display (Tip: Combine random selection with display logic)
Example
Page 1 - AQ1
- A-1 Q1
Page 2
- B
Q2
- B-1
Q2
Page 3
- C
Q3
- C-1
Q3
Custom Logic
random show 2 from Q1, Q3, Q5
if Q1 then show Q2
if Q3 then show Q4
if Q5 then show Q6
Preview
Weighted Random Selection
Randomly select n questions with different probabilities of appearance
Example
- Q1. A
Q1
- Q2. B
Q2
- Q3. C
Q3
- Q4. D
Q4
Questions appear with a 1:1:1:2 probability ratio, with Q4 having a higher chance of being selected.
Custom Logic
random show 1 from Q1~4 weight by 1:1:1:2
Preview
Weight ratios must be integers. Convert decimal ratios to integers (e.g., '0.1:1:1' becomes '1:10:10')
Random Selection from Visible Questions
To improve response rates and user experience, you can randomly select from questions that meet display logic conditions.
Example
Based on answers to Q1, show a maximum of 2 follow-up questions. "Bank F" has a higher weight to increase its probability of appearing due to lower sample size.
- Q1. Which banks have you used?
Q1
- A. Bank A
- B. Bank B
- C. Bank C
- D. Bank D
- E. Bank E
- F. Bank F
- Q2. Suggestions for Bank A?
Q2
- Q3. Suggestions for Bank B?
Q3
- Q4. Suggestions for Bank C?
Q4
- Q5. Suggestions for Bank D?
Q5
- Q6. Suggestions for Bank E?
Q6
- Q7. Suggestions for Bank F?
Q7
Custom Logic
if Q1A1 then show Q2
if Q1A2 then show Q3
if Q1A3 then show Q4
if Q1A4 then show Q5
if Q1A5 then show Q6
if Q1A6 then show Q7
random show 2 from only_show Q2~7 weight by 1:1:1:1:1:5
Preview
'only_show' only considers DSL 'show' and 'hide' logic, not survey GUI logic or 'branch to' logic.
Matrix Sub-question Random Selection
Randomly select n sub-questions from a matrix
Example
- Q1. Random Matrix Selection
Q1
- Q1S1. A
Q1S1
- Q1S2. B
Q1S2
- Q1S3. C
Q1S3
- Q1S4. D
Q1S4
- Q1S5. E
Q1S5
- Q1S1. A
- Q2. Weighted Matrix Selection
Q2
- Q2S1. A
Q2S1
- Q2S2. B
Q2S2
- Q2S3. C
Q2S3
- Q2S4. D
Q2S4
- Q2S5. E
Q2S5
- Q2S1. A
- Q3. Control Next Question Display
Q3
- Q3A1. A
Q3A1
- Q3A2. B
Q3A2
- Q3A3. C
Q3A3
- Q3A4. D
Q3A4
- Q3A1. A
- Q4. Random Selection from Visible Matrix Items
Q4
- Q4S1. A
Q4S1
- Q4S2. B
Q4S2
- Q4S3. C
Q4S3
- Q4S4. D
Q4S4
- Q4S1. A
Custom Logic
# Simple random selection from sub-questions
random show 2 from Q1S1~5
# Weighted random selection from sub-questions
random show 3 from Q2S1~5 weight by 1:5:2:3:9
# Control Q4 options visibility based on Q3
if Q3A1 then show Q4S1
if Q3A2 then show Q4S2
if Q3A3 then show Q4S3
if Q3A4 then show Q4S4
# Random selection only from visible sub-questions
random show 2 from only_show Q4S1~4
Preview
This syntax works for matrix single-choice, multiple-choice, and scale questions.