# Is it possible to frontrun a RNG from an oracle?

**URL:** <https://forum.openzeppelin.com/t/is-it-possible-to-frontrun-a-rng-from-an-oracle/32369>\
**Category:** Security\
**Created:** [October 9, 2022, 11:20pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-frontrun-a-rng-from-an-oracle/32369 "2022-10-09T23:20:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MetalGearSolidity](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/metalgearsolidity/32/10495_2.png) [@MetalGearSolidity](https://forum.openzeppelin.com/u/MetalGearSolidity)\
**Post date:** [October 9, 2022, 11:20pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-frontrun-a-rng-from-an-oracle/32369/1 "2022-10-09T23:20:40Z")

</div>

Hypothetically say you had a random number game. A random number 0-99 is retrieved from an oracle like chainlink. If the number is \<49 the player wins else the player loses. Would getting that number first and paying for another transaction to go through first be a concern? Please assume that there is a cooldown timer or something that will block the second transaction no matter what the result of the first one was.
