Random code generator | XM Community
Skip to main content
Solved

Random code generator


I am hosting my survey through MTurk and I would like to create a random code for each person who completes the survey. Is there a way to do that?

Best answer by Michael_Campbell_RedPepper

Yeah! Qualtrics has a random number generator, but it can't be relied on to not give repeats (you might give two people the same random number). One thing I would do is use a Javascript library like short-unique-id https://www.npmjs.com/package/short-unique-id. If you need help implementing that, let me know!
View original

3 replies

  • Author
  • 4 replies
  • March 26, 2018
This survey is in Qualtrics and redirected, so the random code would be in my Qualtrics survey.

Michael_Campbell_RedPepper
QPN Level 3 ●●●
Forum|alt.badge.img+3
Yeah! Qualtrics has a random number generator, but it can't be relied on to not give repeats (you might give two people the same random number). One thing I would do is use a Javascript library like short-unique-id https://www.npmjs.com/package/short-unique-id. If you need help implementing that, let me know!

  • Author
  • 4 replies
  • March 26, 2018
Awesome, this is great Michael, thank you. I am going to play with is and see if I can figure it out. If not, I will love help. I will let you know either way!

Leave a Reply