Skip to main content

Random Prompts

You can introduce randomness into theme sentences using a specific format.

Random Prompts

For example, if a theme sentence is "A gorilla runs wild in New York," you might think, "New York is fine, but Washington D.C. would also be good." In such cases, you can use random prompts to let the system decide randomly.

Format

The format is as follows:

{option1|option2|option3|...}

Applying this to the gorilla example mentioned above would look like this:

A gorilla runs wild in {New York|Washington D.C.}

Nesting is also supported.

{{A gorilla runs wild in {New York|Washington D.C.}|A duck runs wild in {Nagoya|Fukuoka}}

Format 2

Special processing occurs when the first option is enclosed in ##. Specifically, the first option acts as a replacement string, and the second option onwards are placed randomly.

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

Notes

You can test this using the Debug Tools from the browser console in the developer tools.