Random string from an array

Is there any way to select a random text from an array? I found an old topic but it didn’t help me. I also tried to use Javascript Code (I don’t know coding. I just used some exaples that I found). That didn’t work either. Do you have any idea or could you send me an example? Thank you!