Random Prompts
You can add randomness to prompt text using a specific format.
Random Prompts
For example, if the prompt is "A gorilla rampages in New York," you might think "New York is good, but Washington D.C. would work too." Random prompts handle this kind of random selection.
Format
The format is as follows:
{option1|option2|option3|...}
Applying this to the gorilla example:
A gorilla rampages in {New York|Washington D.C.}
Nesting is also supported.
{A gorilla rampages in {New York|Washington D.C.}|A duck rampages in {Nagoya|Fukuoka}}
Format 2
When the first option is wrapped in ##, special processing occurs. Specifically, the first option becomes a replacement string, and the second and subsequent options are randomly placed.
Example 1
{##char##|Alice|Bob|Charlie}
Area-1: ##char## ##char##
Area-2: ##char## ##char##
Area-3: ##char## ##char##
Output
Area-1:
Area-2: Alice
Area-3: Bob Charlie
Example 2
{##item##|apple|berry|cherry}##item##,##item##
Output
berry,apple