Random Prompt

A random prompt contains multiple prompts each qualified with a given weight. When queued up for playback, a random prompt randomly chooses and queues up a single prompt from its list. The random selection is affected by the weight given to each prompt. A prompt qualified with a bigger weight has a higher chance of being selected. This type of prompt is typically used for playing back advertisements or slogans.

For example, the prompt expression:

P[P1] % 1 || P[P2] % 1 || P[] % 2

Prompt P[1] and P[2] have 25% of chances of being played back while nothing (P[]) is played back 50% of the times.