# RandRange always returns zero

**URL:** <https://forums.unrealengine.com/t/randrange-always-returns-zero/1246248>\
**Category:** C++\
**Tags:** random, random-numbers, unreal-engine\
**Created:** [July 31, 2023, 7:59pm UTC](https://forums.unrealengine.com/t/randrange-always-returns-zero/1246248 "2023-07-31T19:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KermanFooFoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KermanFooFoo](https://forums.unrealengine.com/u/KermanFooFoo)\
**Post date:** [July 31, 2023, 7:59pm UTC](https://forums.unrealengine.com/t/randrange-always-returns-zero/1246248/1 "2023-07-31T19:59:38Z")

</div>

Using FMath::RandRange always returns zero if the bounds are set to anything larger than Min\_int16, Max\_int16. I tried with Max\_int32 and Max\_int64, and got nothing but zeroes, even though the docs claim that there are overrides for those interger sizes.
