# Random line from external txt file?

**URL:** <https://forum.kirupa.com/t/random-line-from-external-txt-file/223199>\
**Category:** flash\
**Created:** [April 20, 2007, 8:25am UTC](https://forum.kirupa.com/t/random-line-from-external-txt-file/223199 "2007-04-20T08:25:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sumo/32/1950_2.png) [@sumo](https://forum.kirupa.com/u/sumo)\
**Post date:** [April 20, 2007, 8:25am UTC](https://forum.kirupa.com/t/random-line-from-external-txt-file/223199/1 "2007-04-20T08:25:36Z")

</div>

Hi!

I have an external text file which has 1500 lines and I want to load randomly 100 lines into flash. Each line should be on its own text field. Any idea how to begin with this kind of a problem?

-sumo-
