# Question on random Integer

**URL:** <https://forums.unrealengine.com/t/question-on-random-integer/434791>\
**Category:** Blueprint\
**Tags:** random-numbers, integer, unreal-engine, Blueprint, question\
**Created:** [September 30, 2018, 7:49pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791 "2018-09-30T19:49:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [September 30, 2018, 7:49pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/1 "2018-09-30T19:49:26Z")

</div>

Hi ! I have this simple question, there is a way to get a series of integers like 5,10, 20, 50 ? A the moment is use the random integer with a max integer.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 30, 2018, 9:37pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/2 "2018-09-30T21:37:13Z")

</div>

Is your series based on something? Or you just want multiples of 5?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 30, 2018, 9:40pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/3 "2018-09-30T21:40:24Z")

</div>

This should work, not sure if there’s a better way in BP:

 ![255173-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/a/52ab64a0900be7d23158202775af9d9429fea747.png)

Run it in a loop, of course. You did not include details regarding how the series needs to look like - ascending? Evenly distributed?

---

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [September 30, 2018, 9:48pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/4 "2018-09-30T21:48:37Z")

</div>

Thanks! I need thing like this: or 5, or 10, or 20, or 50

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 30, 2018, 9:53pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/5 "2018-09-30T21:53:40Z")

</div>

Sorry, not getting it. I can see a series relation for 5, 10, 20 (it’s doubling) but 50?

If you just want to double the value, multiply the next loop iteration by 2.

![255175-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/7/ab796c433c824fbe773dd6b782e5791c975405f5.png)

The above would output eleven elements 0 - 50 with intervals of 5.

---

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [September 30, 2018, 9:56pm UTC](https://forums.unrealengine.com/t/question-on-random-integer/434791/6 "2018-09-30T21:56:32Z")

</div>

Ok i’m satisfy with this for now, thank you !
