# Loading random/dynamic text into a text field

**URL:** <https://forum.kirupa.com/t/loading-random-dynamic-text-into-a-text-field/76454>\
**Category:** flash\
**Created:** [January 18, 2005, 5:48pm UTC](https://forum.kirupa.com/t/loading-random-dynamic-text-into-a-text-field/76454 "2005-01-18T17:48:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WAVEshift](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@WAVEshift](https://forum.kirupa.com/u/WAVEshift)\
**Post date:** [January 18, 2005, 5:48pm UTC](https://forum.kirupa.com/t/loading-random-dynamic-text-into-a-text-field/76454/1 "2005-01-18T17:48:22Z")

</div>

Hey everyone,

Could someone please help me work this problem out: When a user enters the website, it will pull text from some location (possibly an XML file) and load it into a text field. The trick is that I want it to randomly load a different chunk of text in each time the user opens the site. There are about 25 different small pieces of text I want to randomly load.

I’m thinking of using XML to store the 25 different text sentences, but am open to other ideas.

Thanks so much! :ne:
