Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by Rich!

Easy Random Responses?

Is there a simple way of having random responses to a single voice command?


Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

AI Support Bot
Related Content
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
United Kingdom
Kind of...

I use a script which has a list of pre-defined responses set up and uses a random number to pick one of the responses.


# Get a response value
$response = GetRandom(0,100)

If($response = 0)
SayWait("This is the first response")
ElseIf($response = 1)
SayWait("This is the second response")
ElseIf($response = 2)
# You get the idea


GetRandom( Min, Max )
Returns a random number between Min and Max
Example: $x = GetRandom(10, 50)
There you go! I knew it was gonna be GetRandom, I just didn't know how to apply it.
All hail the sultan of script:)