Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

Picking a random participant

Topic Locked
UserPost

7:10
March 28, 2008


Pat

Guest

Is there a way to pick a random participant in order to award an incentive?

8:33
April 2, 2008


Chad

Admin

posts 776

Hi Pat,
Interesting. You may be able to do this with a custom script. We would have to add the rand() function in for you this wouldn’t be too much of an issue, but yes you can do this inside a survey.

It would be difficult to tell the system how many people to give the incentive to. It would basically run the random function generate a random number, and if that random number equals some constant (basically the percentage of people you want to give this incentive to) then give the incentive.

So while you can assign a percentage the exact number of people getting the incentive (like a quota) would be very difficult, and may be easier to do after the survey is finished.

Hope this helps,
Chad

Did this answer help? Let us know!
Want to be a SurveyGizmo ninja? Learn here!

7:57
April 24, 2009


researcher

Guest

Chad said:

We would have to add the rand() function in for you this wouldn’t be too much of an issue…


Sadly, it looks like this never happened. The custom API scripting is great! But there is no rand(). I could use it in several different ways.


10:01
April 24, 2009


Chad

Admin

posts 776

Hi researcher,

Actually it's called sgapiRand().  Sorry, we just forgot to put it in the documentation.  I'll have our tutorial guy add that in on Monday.


-Chad

Did this answer help? Let us know!
Want to be a SurveyGizmo ninja? Learn here!



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.