# Question about storing repeated random integer values

**URL:** <https://forums.unrealengine.com/t/question-about-storing-repeated-random-integer-values/452482>\
**Category:** Blueprint\
**Tags:** randomize-array, reference-blueprint, unreal-engine, UE4, Blueprint, question\
**Created:** [July 18, 2019, 6:39pm UTC](https://forums.unrealengine.com/t/question-about-storing-repeated-random-integer-values/452482 "2019-07-18T18:39:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4796e6ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4796e6ce](https://forums.unrealengine.com/u/anonymous_user_4796e6ce)\
**Post date:** [July 18, 2019, 6:39pm UTC](https://forums.unrealengine.com/t/question-about-storing-repeated-random-integer-values/452482/1 "2019-07-18T18:39:09Z")

</div>

Hello!  
I’m a newb here so would appreciate some sage advice -  
If I’m running a random integer function from 0 to 4 in order to choose from an array, and run the whole thing three times to get three results - 0, 2,1 1, 1, 3 etc.  
Is there a way to “store” these result and in order to reference somewhere else, as in - if resulting sequence is 1,2,3 do this, if 1,1,2 do that…?  
Thanks!

---

<div class="post-metadata">

**Author:** ![that\_lightworker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@that\_lightworker](https://forums.unrealengine.com/u/that_lightworker)\
**Post date:** [July 20, 2019, 12:26am UTC](https://forums.unrealengine.com/t/question-about-storing-repeated-random-integer-values/452482/2 "2019-07-20T00:26:24Z")

</div>

I literally just did something like this last night. Here is an example below with a string array and string variable used to store and signal a resulting sequence. Took me a while but it was pretty fun working it out (again)!

 ![282854-randomints.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/2/26284fd6fb565de8217e270184d9b729207fdc36.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4796e6ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4796e6ce](https://forums.unrealengine.com/u/anonymous_user_4796e6ce)\
**Post date:** [July 20, 2019, 6:39am UTC](https://forums.unrealengine.com/t/question-about-storing-repeated-random-integer-values/452482/3 "2019-07-20T06:39:07Z")

</div>

Aha! very cool…  
Thanks lightworker!
