twirapp/twir

Multiple $(random) $(random.phrase) Calls Return Identical Values in a Single Response

Closed this issue · 0 comments

When using the $(random) and $(random.phrase) functions multiple times in a single bot response, the bot returns the same value for each call, rather than generating unique random values for each instance.

Expected Behavior: Each $(random) or $(random.phrase) call should produce a different random output within the same response.

Actual Behavior: The bot generates the same value for all instances of $(random) or $(random.phrase) within a single response, leading to identical outputs.

Screenshot of bot answer settings :
image

image

Screenshot of bot responses in chat:
image

image