# Random word from an array

**URL:** <https://forum.kirupa.com/t/random-word-from-an-array/198458>\
**Category:** flash\
**Created:** [August 25, 2006, 7:19am UTC](https://forum.kirupa.com/t/random-word-from-an-array/198458 "2006-08-25T07:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sumo/32/1950_2.png) [@sumo](https://forum.kirupa.com/u/sumo)\
**Post date:** [August 25, 2006, 7:19am UTC](https://forum.kirupa.com/t/random-word-from-an-array/198458/1 "2006-08-25T07:19:51Z")

</div>

Hello!

I have problem with getting a random word from an array and the putting that word to a text field.

I setup the array for my words like this:

```auto

// a string of words
this.somewords = "wind breeze storm stormy tornado text space";
// convert the string of words into an array of words
this.wordList = new Array();
this.wordList = this.somewords.split(" ");

```

And I want to put randomly these words to a movieclip that I’m attaching to the stage about 50 times. Anyone could help?

Thanks,  
sumo
