# Can't fill integer array

**URL:** <https://forums.unrealengine.com/t/cant-fill-integer-array/240810>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 15, 2021, 9:51pm UTC](https://forums.unrealengine.com/t/cant-fill-integer-array/240810 "2021-07-15T21:51:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GarielSd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarielSd](https://forums.unrealengine.com/u/GarielSd)\
**Post date:** [July 15, 2021, 9:51pm UTC](https://forums.unrealengine.com/t/cant-fill-integer-array/240810/1 "2021-07-15T21:51:49Z")

</div>

Hi, noob question here. I want to fill an empty integer array with 7 random values from 1 to 20. The following blueprint gives me only one index, what am I doing wrong? I can’t fix this no matter what I try, please help

 ![array](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/8/68fd2e8698fcc276ff9c9d9b6a51654c34baff60.png)

---

<div class="post-metadata">

**Author:** ![GarielSd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarielSd](https://forums.unrealengine.com/u/GarielSd)\
**Post date:** [July 15, 2021, 11:14pm UTC](https://forums.unrealengine.com/t/cant-fill-integer-array/240810/2 "2021-07-15T23:14:16Z")

</div>

Yes it’s working! Do N really threw me off. For Loop is the way to go. Thank you so much for the help!!!
