Writing and Deploying a VRF Consumer Contract

Learn how to write and deploy a VRF-compatible smart contract.

In this example, we'll request a random dice result as a uint between 1 and 6 from the VRF.

Chainlink provides a sample consumer contract of the VRF, which we can take as a starting point and modify for our purpose.

Get hands-on with 1200+ tech skills courses.