Random text filter

hi guys… there is this AS project i’ve been seen on many sites which i want to know how to write my own instead of cpying and pasting someone’s codes I want a tutorial that explains each steps… just like this site
check all the text and see how they all roll randomly

http://yugop.com/index.asp