# Random Text Cycle Script

**URL:** <https://forum.kirupa.com/t/random-text-cycle-script/77267>\
**Category:** flash\
**Created:** [January 25, 2005, 11:20pm UTC](https://forum.kirupa.com/t/random-text-cycle-script/77267 "2005-01-25T23:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krdzine1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krdzine1/32/1068_2.png) [@krdzine1](https://forum.kirupa.com/u/krdzine1)\
**Post date:** [January 25, 2005, 11:20pm UTC](https://forum.kirupa.com/t/random-text-cycle-script/77267/1 "2005-01-25T23:20:38Z")

</div>

I got this script from this site and was wondering how I could limit the character range to specific characters…like only the letters in the word it’s going to form. I tried editing it so ((x\>=69,75,82,85) but it doesn’t seem to work.

onClipEvent (load) {  
go = true;  
}  
onClipEvent (enterFrame) {  
if (go) {  
x = random(85);  
if ((x\>=69) and (x\<=86)) {  
this.letter2 = chr(x);  
}  
if (x == 85) {  
// replace [number] with the number corresponding with the first letter in the word you want.  
go = false;  
}  
}  
}
