Select one random option from an option list

For example, you have the option list named Gender. To randomly select one option from this option list, use one of the following functions: