Skip to main content
2 of 3
fix: focus (esp as a platform specific to the author-migrated answer); remove commentary

Is randomness achievable on-chain?

How, for example, might you implement a simple "coin-flip" game as an on-chain Solana program?

The concept is that a player deposits a coin or token, and the smart contract generates a "win" or a "lose" with a 50/50 chance.

Nate
  • 411
  • 4
  • 8