Simple example of implementation:
Lets say you play poker video. Ok. Besides the random shit that happens there, on every hand, there is a 2% chance even if you actually win after the random extraction, to lose the hand. Lets say the random gave JJ K 3 4. You would win with JJ. The 2% will say "nah bro, I got the edge now" and will change your cards to J 5 K 34.