Roll to begin.
Instead of a secret value, you generate many fair outcomes and observe distribution.
Open the code and try the variant ideas listed in comments near the bottom.