i need to get a out put of the array in my code that will display every time the counter counts and has to be linked to a random number.

import flash.utils.Timer;

var color: Array = ["red", "green", "blue", "yellow"];
var rand: Number;
var counter = 0;
var myTimer: Timer = new Timer(1000, 4);
myTimer.addEventListener(TimerEvent.TIMER, startCount);
myTimer.start();



function startCount(e: TimerEvent) {
    counter++;
    for (var i = 0; i < 1; i++) {

        var numbers = Math.floor(Math.random() * 4);
        rand = numbers;
        trace(rand);
    }



counter++;
for (var i = 0; i < 1; i++) {

    var numbers = Math.floor(Math.random() * 4);
    rand = numbers;
    trace(rand);
}