Hi.
I found a very cool animation, and now of course i want to know how to do it 
Click on KOLEKCJA , and there, everytime you click next arrow, you will see that sweet text changing effect.
I have been fighting with that for a long time, and i have came to point, where i can remake that effect, but there is one but.
This animation is quite heavy when it comes to longer texts. Probably becouse of Math.random().
Let me show you some code:
var random:String = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPLKHJGFDSAZXCVBNM1234567890";
// Random letters
var letter:int = 0; // Letter to show
var sentence:String = textF.text; // My textField i animate with some long text
var sentenceLength:int = sentence.length; // Simply length of sentence in my textField
trace(sentence);
trace(sentenceLength);
addEventListener(Event.ENTER_FRAME, matrix);
function matrix(e:Event):void{
letter++;
textF.text = "";
for(var i:int = 0; i != letter; i++){
textF.appendText(sentence.charAt(i));
}
for(var j:int = letter; j != sentenceLength; j++){
textF.appendText(random.charAt(Math.random() * 62));
}
if(letter == sentenceLength){
trace("Animation is finished");
removeEventListener(Event.ENTER_FRAME,matrix);
}
}
Now it looks cool and all when i set it to 60 fps, but when i want some longer text, OR many textfields(then i put them in an array, together with another for loop), then it comes choppy.
So my question is: How to optimalize, or makethis anymation the way it will be fast and ligth.
I’ll appreaciate any help.
PS: Is there any way to get random number WITHOUT using heavy Math.random() function?

.
Ill recommend you to take other approach and use fallow text type in words or in full lines it’s a bit more work in code but will like much better.
If you are not a coder I can recommend you flupie class under mit as it can handle also TextFormat and its fast and light .