Randomness
How do we ensure that the generation of residents is completely random?
Last updated
Was this helpful?
How do we ensure that the generation of residents is completely random?
Last updated
Was this helpful?
Just like many fair dApps (games) on the Sui, we use randomness solution to ensure that the process of generating Dungeon Residents is completely random and in accordance with the corresponding probabilities.
This also guarantees that no one can control this process, so the residents obtained by opening treasure chests are completely random.
In `reveal_treasure` ,
In the settlement of the and the calculation of , we utilize Sui's On-Chain Randomness feature to ensure absolute fairness.
For more technical details, please refer to