# Pyth Entropy (RNG)

<figure><picture><source srcset="https://1941999756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuH6OpygnhtT4R1DM7JI2%2Fuploads%2FTJSPlpKukTwTawwYRLJE%2FPyth%20Logotype_Light%20copy.png?alt=media&#x26;token=6791e3a3-4101-4381-a182-8881c05f2698" media="(prefers-color-scheme: dark)"><img src="https://1941999756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuH6OpygnhtT4R1DM7JI2%2Fuploads%2FTJSPlpKukTwTawwYRLJE%2FPyth%20Logotype_Light%20copy.png?alt=media&#x26;token=6791e3a3-4101-4381-a182-8881c05f2698" 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>
