Random button selection

Hello to everyone,

example: value 10 or John text
I want to randomly print the values ​​in the example to one of the 4 buttons.
but I failed. I couldn’t index the buttons. maybe I thought wrong.
How can I print the text of the button to be selected randomly. thank you.

google translate used

put the button.text properties into a list, then use the select a random item block from the list drawer
Taifun

is it correct?. If it is wrong, can you show it with an example?

bild

1 Like

I want to print the result in the picture, randomly on one of the buttons, only on one.

what about trying something… you already got a few answers…
and: what about using Do it to debug your blocks?
see tip 4 here App Inventor: How to Learn | Pura Vida Apps

Taifun

1 Like