> For the complete documentation index, see [llms.txt](https://docs.sanko.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sanko.xyz/build-on-sanko/pyth-entropy-rng.md).

# Pyth Entropy (RNG)

<figure><picture><source srcset="/files/N5OCIrEw9vVdGGV9I6tW" media="(prefers-color-scheme: dark)"><img src="/files/N5OCIrEw9vVdGGV9I6tW" alt="" width="375"></picture><figcaption></figcaption></figure>

To generate random numbers in your smart contract, use Pyth Network's [Entropy protocol](https://docs.pyth.network/entropy).&#x20;

Generate random numbers guide:

<https://docs.pyth.network/entropy/generate-random-numbers/evm>

\
\
Entropy contract addresses:

```
Sanko Mainnet:
0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb
```

```
Sanko Testnet:
0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb
```

Source: <https://docs.pyth.network/entropy/contract-addresses>
