How to generate random numbers
True randomness is a hard topic in computer science, and it is difficult to achieve all by yourself. When randomness is key to your project, we advise you to use a reputed Random Number Generator (RNG).
What is an RNG?
By producing sequences of numbers that cannot be predicted, RNGs ensure fairness and uniqueness in blockchain projects. This enhances the integrity and trustworthiness by preventing manipulation and ensuring equitable results.
What does it mean for Chiliz Chain developers
By incorporating RNGs, sports & entertainment projects can significantly boost the trust, excitement, and fairness of what they offer.
How to do it using Pyth?
Chiliz Chain's testnet "Spicy" supports Pyth's Entropy.
Entropy allows developers to quickly and easily generate random numbers on the blockchain for applications such as NFT mints, gaming, and more. Through the Solidity SDK, this enables developers to easily integrate RNG into their EVM applications.
Use the following address to use Entropy using Chiliz.
On Chiliz Mainnet
Chain ID:
chiliz
Entropy Contract Address:
0x0708325268dF9F66270F1401206434524814508b
Provider:
0x52DeaA1c84233F7bb8C8A45baeDE41091c616506
On Spicy Testnet
Chain ID:
chiliz-spicy
Entropy Contract Address:
0xD458261E832415CFd3BAE5E416FdF3230ce6F134
Provider:
0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344
Pyth offers a full set of documentation on Entropy, including:
Last updated