# How do I select a random sentence for a text box

**URL:** <https://forums.unrealengine.com/t/how-do-i-select-a-random-sentence-for-a-text-box/478717>\
**Category:** Community & Industry Discussion\
**Tags:** random, unreal-engine, loading-screen, question\
**Created:** [February 13, 2021, 5:25am UTC](https://forums.unrealengine.com/t/how-do-i-select-a-random-sentence-for-a-text-box/478717 "2021-02-13T05:25:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CakeFaceGamingyt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CakeFaceGamingyt](https://forums.unrealengine.com/u/CakeFaceGamingyt)\
**Post date:** [February 13, 2021, 5:25am UTC](https://forums.unrealengine.com/t/how-do-i-select-a-random-sentence-for-a-text-box/478717/1 "2021-02-13T05:25:53Z")

</div>

sorry, I am new to UE4 I am trying to make a loading screen that displays a random fact on the bottom of the screen, I already have sentences I would like it to use but I do not know how to make it randomly select one, this is what I have so far

 ![329660-screenshot-2021-02-12-212353.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/c/c4c310256972d778700769c7ffd848b4a8fca0cd.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 13, 2021, 11:41am UTC](https://forums.unrealengine.com/t/how-do-i-select-a-random-sentence-for-a-text-box/478717/2 "2021-02-13T11:41:00Z")

</div>

You could do this:

 ![329682-screenshot-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/b/60b2001a823f6a868e71f6e6cd7757091ef2fb76.jpeg)

---

<div class="post-metadata">

**Author:** ![CakeFaceGamingyt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CakeFaceGamingyt](https://forums.unrealengine.com/u/CakeFaceGamingyt)\
**Post date:** [February 13, 2021, 4:39pm UTC](https://forums.unrealengine.com/t/how-do-i-select-a-random-sentence-for-a-text-box/478717/3 "2021-02-13T16:39:36Z")

</div>

Thank you so much, it worked.
