Randomize like slot machine

I’ve got an array of strings (words). I’ve got a dynamice text box on the stage. I’ve got a button, that when pressed, shows the next word in the array. I’ve got another button when pressed pulls a random word from the array to display. What i’d like is that when the random button is pressed, the text box kind of ticks through the whole arrayy for a few seconds then picks one. so it looks kind of like a slot machine. is there a way to script this?