Page 1 of 1

RandomizeVS Function for check box

Posted: November 28th, 2017, 9:57 am
by juan pablo
Good Morning


I have the following query.
it is possible to put in ramdon the answer options of a question with multiple answer, check box ??
as well as with the unique answer questions
"RandomizeVS Function"

Re: RandomizeVS Function for check box

Posted: November 28th, 2017, 4:19 pm
by josh
The randomizevs function should work with a checkbox field.

Re: RandomizeVS Function for check box

Posted: November 28th, 2017, 4:25 pm
by juan pablo
Hello Josh

a big favor, could you share the logic of an example of The randomizevs for checkbox

Re: RandomizeVS Function for check box

Posted: November 28th, 2017, 8:45 pm
by josh
Here is the SimpleCAPI example with the LANGUAGES_SPOKEN checkbox randomized.

Here is the relevant logic:
PROC LANGUAGES_SPOKEN
onfocus
randomizevs(LANGUAGES_SPOKEN);

Re: RandomizeVS Function for check box

Posted: December 13th, 2017, 6:44 pm
by juan pablo
Thank you very much for the help
helped me a lot the logic he shared

Re: RandomizeVS Function for check box

Posted: August 5th, 2018, 5:09 am
by pngugi
josh wrote:Here is the SimpleCAPI example with the LANGUAGES_SPOKEN checkbox randomized.

Here is the relevant logic:
PROC LANGUAGES_SPOKEN
onfocus
randomizevs(LANGUAGES_SPOKEN);
I Josh, I have noted that when you start data entry, RandomizeVS produces same results (similar patterns) for all the cases but when you add a case thereafter RandomizeVS seems to work (gives random value sets). How can one set the system to give different results at any one time (whether you are starting the system or you are already in the add case mode).

Kind regards,

Paul

Re: RandomizeVS Function for check box

Posted: August 5th, 2018, 11:26 am
by josh
Try seeding the random number generator with a call to seed before the first call to randomizevs: http://www.csprousers.org/help/CSPro/seed_function.html

Re: RandomizeVS Function for check box

Posted: August 9th, 2018, 2:20 am
by pngugi
josh wrote:Try seeding the random number generator with a call to seed before the first call to randomizevs: http://www.csprousers.org/help/CSPro/seed_function.html
Thanks so much Josh