Integration
Four short pages, in order. Read them top-to-bottom and you'll ship.
The integration is the same shape regardless of what you're building. A channel binds DICE to your program at deploy time, then every player instruction kicks off a round with a single CPI, and DICE calls back with 32 bytes when the hardware is done. The only game-specific code is your outcome formula and your own game-state account.
Pages
1Channel setupCreate and fund the PDA that binds your program as DICE's callback target. Once per dApp, at deploy time.2Request randomnessThe one CPI call you add inside your game instruction. Full Accounts struct included.3Callback handlerDefine DiceResult, declare the accounts, write the outcome line. Game-specific logic lives here.4Outcome formulasFive copy-paste formulas — dice, coin, wheel, lottery, threshold — that cover 90% of VRF use-cases.