Can I get Qualtrics to Randomly generate a number (within a defined range) for a participant | XM Community
Skip to main content
Solved

Can I get Qualtrics to Randomly generate a number (within a defined range) for a participant

  • October 16, 2020
  • 1 reply
  • 2521 views

Due to COVID, I need to conduct an experiment using Qualtrics. The experiment is on budgeting. So, I want to participant to submit a budget, then I would like Qualtrics to randomly generate profit numbers (from a defined range)- which represents the actuals.
For example, Question 1 asks the respondent to submit a profit budget for 2021- (respondent answers-- let's assume they say "$120")
Question 2- I would like Qualtrics to generate a number within a range of profit possibilities (e.g., $100-$200) - and display it on the screen. Let's say Qualtrics selects "$140"
Question 3- would compare the entry from the respondent in Q1 ($120) versus Q2 ($140) and show: Profit beat budget by $20 ($140 actuals- $120 budget).
Is this possible?

Best answer by npetrov937

Qualtrics has an option to create random numbers and save them in embedded data - https://www.qualtrics.com/support/survey-platform/common-use-cases-rc/assigning-randomized-ids-to-respondents/
I think you should also be able to use piped text in order to set the minimum and the maximum with dynamic values (based on PP's responses).
Otherwise, this is fairly straightforward to achieve with Javascript too.
Good luck!

1 reply

npetrov937
Level 2 ●●
Forum|alt.badge.img+4
  • Level 2 ●●
  • Answer
  • October 18, 2020

Qualtrics has an option to create random numbers and save them in embedded data - https://www.qualtrics.com/support/survey-platform/common-use-cases-rc/assigning-randomized-ids-to-respondents/
I think you should also be able to use piped text in order to set the minimum and the maximum with dynamic values (based on PP's responses).
Otherwise, this is fairly straightforward to achieve with Javascript too.
Good luck!