how to create a button so when you hit it it generates a specific word randomly?

So like Im new to coding and I figured how to create a button that generates specific word with each click but i would like for it be randomized with each click and not be in the exact order if that makes sense.

Hi @CristhinaR

if what u mean is randomly pick a word from a predefined set of words then you can store all those words as elements of an ArrayList or a normal array (ArrayList is better) and then on every click of the button call a function that generates a random number(say rand) and display the element at “rand” index from your array list