Help With Randomness

Hey,

I really need to know how i can make some flash so when i click a button, it will show a random word from a list of words i have.
Even better if you no how to do it so flash reads a .txt (like the headlab newsflasher) file for the words so i can update it easily.

This is very important.

Thnx.

use Math.random()*a where set of a is {a | a is whateverAmountOfText} in MX.
random in math is between 0 and 1 so *5 puts it tween 1 and 5.
then maybe an if then else chain.
Just a thought…