# Max Random Number Range on Entropy

**URL:** <https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33>\
**Category:** Entropy\
**Created:** [April 4, 2025, 10:43am UTC](https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33 "2025-04-04T10:43:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xcredence](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/0xcredence/32/26_2.png) [@0xcredence](https://dev-forum.pyth.network/u/0xcredence)\
**Post date:** [April 4, 2025, 10:43am UTC](https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33/1 "2025-04-04T10:43:51Z")

</div>

Can you help me with a question for a questionaire I am filling out for our RNG audit. What is the range of numbers that could be returned from the entropy contract? Min/Max

Thank you

---

<div class="post-metadata">

**Author:** ![0xcredence](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/0xcredence/32/26_2.png) [@0xcredence](https://dev-forum.pyth.network/u/0xcredence)\
**Post date:** [April 4, 2025, 10:44am UTC](https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33/2 "2025-04-04T10:44:14Z")

</div>

the returned random number is a bytes32

so anything in the bytes32 domain with a uniform probability

---

<div class="post-metadata">

**Author:** ![0xcredence](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/0xcredence/32/26_2.png) [@0xcredence](https://dev-forum.pyth.network/u/0xcredence)\
**Post date:** [April 4, 2025, 10:44am UTC](https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33/3 "2025-04-04T10:44:34Z")

</div>

Thanks! So its possible for the entropy contract to return 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF which would be 115792089237316195423570985008687907853269984665640564039457584007913129639935?

Or is there a limit in the underlying code that limits the size of this return?

---

<div class="post-metadata">

**Author:** ![0xcredence](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/0xcredence/32/26_2.png) [@0xcredence](https://dev-forum.pyth.network/u/0xcredence)\
**Post date:** [April 4, 2025, 10:45am UTC](https://dev-forum.pyth.network/t/max-random-number-range-on-entropy/33/4 "2025-04-04T10:45:05Z")

</div>

yes, it’s possible to return this number
