How to create button that makes lines of text appear randomly

please format code with </> button * homework policy * asking questions

Wondering how to do this?

Hello and welcome to the forum!

you can make an array for the lines of code and a button.

for random see here: https://www.processing.org/reference/random_.html

for button see here: https://www.processing.org/examples/button.html

for lines of code see https://www.processing.org/tutorials/arrays/

Warm regards,

Chrisir