outside your function, create a variable to save the last shown random element:
PHP Code:
var lastShown:Number;
then when you assign it, check to make sure it doesn't match that - then set it again until it doesn't match. then set the lastShown variable to that new element:
PHP Code:
var randomElement:Number = arrayFull[int(Math.random() * (arrayFull.length-1))];
while(randomElement == lastShown) randomElement = arrayFull[int(Math.random() * (arrayFull.length-1))];
messageText.htmlText += randomElement;
lastShown = randomElement;