Random code generator | XM Community
Solved

Random code generator

  • 26 March 2018
  • 3 replies
  • 344 views

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?
icon

Best answer by Michael_Campbell_RedPepper 26 March 2018, 17:45

View original

3 replies

This survey is in Qualtrics and redirected, so the random code would be in my Qualtrics survey.
Userlevel 4
Badge +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!
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