# Randomize like slot machine

**URL:** <https://forum.kirupa.com/t/randomize-like-slot-machine/203623>\
**Category:** Uncategorized\
**Created:** [October 12, 2006, 3:51pm UTC](https://forum.kirupa.com/t/randomize-like-slot-machine/203623 "2006-10-12T15:51:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [October 12, 2006, 3:51pm UTC](https://forum.kirupa.com/t/randomize-like-slot-machine/203623/1 "2006-10-12T15:51:35Z")

</div>

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?
