Does anyone know how to make a random button generator?

I am trying to create a random button generator to choose a random button and change the backgroundcolour of it.
I already have made a list of all the buttons and made it into a global variable, but I need to make a “set global random button backgroundcolour to” command, if that even exists.

Try something like this, every time you call procedure only one random button changes color the rest have the same

3 Likes

Thanks, I will try this but I can’t seem to find the green set button block. Where do I find it?

At Any Component drawer

Thanks I had no idea those blocks were there, this really helped.

1 Like