Picking one random option from a number of options

I have question that has three options for instance

I want to ask about one of the three crops grown by the farmer, however I
would like Commcare to randomly select one of the three crops e.g

  1. Maize
  2. Beans
    3.Rice
    How do I go about it? Thank you so much. John

One option is to use the random()
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-random
function and then check whether it is, e.g. < .33, > .66 or in between to
make a selection.

··· On Wed, Jan 13, 2016 at 8:00 AM, wrote:

I have question that has three options for instance

I want to ask about one of the three crops grown by the farmer, however I
would like Commcare to randomly select one of the three crops e.g

  1. Maize
  2. Beans
    3.Rice
    How do I go about it? Thank you so much. John


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.