Help to randomise string selection


#1

1) Give a description of the problem
Need assistance on the correct syntax to randomise selecting between four defined strings

2) What is the expected behavior?
I have four radio stations that I want to randomly play from. Currently I can manually edit the piston to change but want to have this as a automatic change.

3) What is happening/not happening?
Manual working find, don’t know how to go about doing this randomly.

4) Post a Green Snapshot of the pistonimage

Hope this make sense. Basically I have a piston to setup my indoor cycling room by turning off the heating, switching on the computer and bike trainer, setting volume etc. I’ve now worked out how to get some upbeat tunes to train to but I can’t work out how to randomise the selection between these.

Any help appreciated :slight_smile:


#2

just use random(variable1, variable2, variable3, variable4)

Enter that in the Expression field.

variableX is your workout music selection.


#3

Brilliant, thanks, that was simple and effective :smiley: Worked a treat