Homey Community Forum

Random number

Is there a way to get a number between 0-9 random into a variable?

And if that is possible the next time the flow operates the first random number achieved will not be used the next time?

Want to use this to listen to radiostations on my Sonos, but want to listen to five different stations in a week. It would be nice if the way the radiostation are selected happens in a random way.

It is even really easy when using the normal logic
This will choose a random number between 0 and 9 everytime it is being run


Wow, that easy? Thx, gives even more possibilities.