Pyth

How every spin stays fair: Pyth Entropy

Where your spin's random number comes from, why nobody can steer it, and how to check it yourself.

PythWheel Team 1 min read

A prize wheel is only as fair as its randomness. PythWheel gets the random number for every spin from Pyth Entropy, which delivers random numbers on-chain in a way nobody can predict or manipulate — including the PythWheel team.

Why randomness is hard on a blockchain

Blockchains are deterministic: every computer on the network has to reach exactly the same result, so there's no natural source of chance. Values like block hashes look random, but whoever produces a block can influence them, so a contract that relies on them can be gamed.

How Pyth Entropy solves it

Entropy combines two contributions so that no single party controls the result:

  1. The randomness provider commits to its secret values in advance, publicly and on-chain, so it can't change them later.
  2. When you spin, the PythWheel contract requests a random number from Entropy. The request adds a value the provider couldn't know when it committed.
  3. The provider then reveals the matching secret. The Entropy contract checks it against the commitment, combines the two, and delivers the result to PythWheel.
  4. PythWheel uses that number to pick your prize from the published drop rates.

What that means for you

  • Nobody can pick winners — the number decides.
  • A spin can't be re-rolled: once its number is delivered, the prize is fixed.
  • Anyone can verify the number after the fact.

Check it yourself

Look up your spin transaction on a block explorer such as HyperEVMScan, then find the request in the Pyth Entropy Explorer to see the random number it received.

Want the details? Read the Pyth Entropy documentation.

More resources