Generates an array of random poll objects with varying types and options.
Each poll includes a question, a type (e.g., "trueFalse", "yesNo", or "custom"), and multiple choice options.
Poll types determine the options generated:
"trueFalse" polls have "True" and "False" options.
"yesNo" polls have "Yes" and "No" options.
"custom" polls generate 2–6 custom options labeled as "Option 1", "Option 2", etc.
Param: options
An object containing the number of polls to generate.
Param: options.numberOfPolls
The number of random polls to generate.
Returns
An array of generated polls with unique IDs and randomly selected types and options.
Generates an array of random poll objects with varying types and options.
Each poll includes a question, a type (e.g., "trueFalse", "yesNo", or "custom"), and multiple choice options. Poll types determine the options generated:
"trueFalse"
polls have "True" and "False" options."yesNo"
polls have "Yes" and "No" options."custom"
polls generate 2–6 custom options labeled as "Option 1", "Option 2", etc.Param: options
An object containing the number of polls to generate.
Param: options.numberOfPolls
The number of random polls to generate.
Returns
An array of generated polls with unique IDs and randomly selected types and options.
Example