# Random Integer in Range Always Returns Zero First

**URL:** <https://forums.unrealengine.com/t/random-integer-in-range-always-returns-zero-first/490758>\
**Category:** Blueprint\
**Tags:** random-numbers, unreal-engine, question, Blueprint\
**Created:** [November 9, 2021, 5:16pm UTC](https://forums.unrealengine.com/t/random-integer-in-range-always-returns-zero-first/490758 "2021-11-09T17:16:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSchuch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JSchuch](https://forums.unrealengine.com/u/JSchuch)\
**Post date:** [November 9, 2021, 5:16pm UTC](https://forums.unrealengine.com/t/random-integer-in-range-always-returns-zero-first/490758/1 "2021-11-09T17:16:59Z")

</div>

No matter which blueprint it is used in nor how it is called, Random Integer in Range will always return zero as the first result.

Anyone else seeing this?

Seems like you can fire it off once on BeginPlay to get around it then get random results thereafter.

---

<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:** [November 9, 2021, 5:25pm UTC](https://forums.unrealengine.com/t/random-integer-in-range-always-returns-zero-first/490758/2 "2021-11-09T17:25:46Z")

</div>

Nah, you’re _probably_ doing something strange. This works fine:

![351885-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/f/bff6413568bc2079a05f3770bc08e1ac59152057.png)

Show us how you do it.

---

<div class="post-metadata">

**Author:** ![BamaGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BamaGame](https://forums.unrealengine.com/u/BamaGame)\
**Post date:** [November 9, 2021, 6:53pm UTC](https://forums.unrealengine.com/t/random-integer-in-range-always-returns-zero-first/490758/3 "2021-11-09T18:53:30Z")

</div>

I think there is a problem with your UE, so try to verify the files for your engine. I hope it’s right

![351901-a8.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/9/969b60cbaa541272519ad7180171cf196cb031f7.jpeg)
