Select an objet from a list

Hi all,
I have a list like this {1,3,7,9,10} and I want my odk program to select
one them randomly. How can i do it?
Thanks a lot

Use random() to generate a random number and then selected-at() to use
that random number to pick from a list. See
https://groups.google.com/d/msg/formhub-users/ndcyBG3I-og/2Q3mqk6XYN4J
for more detail.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, Jul 24, 2014 at 9:38 AM, Pierre Anthony Garraud pagarraud1@gmail.com wrote:

Hi all,
I have a list like this {1,3,7,9,10} and I want my odk program to select one
them randomly. How can i do it?
Thanks a lot

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

Thanks a lot Yaw

··· 2014-07-28 6:05 GMT-07:00 Yaw Anokwa :

Use random() to generate a random number and then selected-at() to use
that random number to pick from a list. See
https://groups.google.com/d/msg/formhub-users/ndcyBG3I-og/2Q3mqk6XYN4J
for more detail.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Thu, Jul 24, 2014 at 9:38 AM, Pierre Anthony Garraud pagarraud1@gmail.com wrote:

Hi all,
I have a list like this {1,3,7,9,10} and I want my odk program to select
one
them randomly. How can i do it?
Thanks a lot

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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