Pololu Robotics & Electronics
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Looking for Random sequence play on button press "script"

i’m green to the language and i’m trying to see if there is such a thing as a command to have random sequences play per button press. if anyone can help it would be much appreciated :slight_smile:


Unfortunately, the Maestro does not have a random command. However, you might be able to use the GET_MS and MOD commands together to get a random number within a certain range, which is probably the easiest method to implement.

By the way, someone else on our forum had a similar question; you can see our response here for other alternatives on generating random numbers using the Maestro scripting language.

- Amanda