# Fast VRF (/docs/builders/vrf)

import { Card, Cards } from 'fumadocs-ui/components/card';
import { Zap, Code, Radio } from 'lucide-react';
import { DiceGameWidget } from '@/components/vrf/DiceGameWidget';
import { ComponentPreviewTabs } from '@/components/rise-wallet/ComponentPreviewTabs';
import { CODE_EXAMPLES } from '@/components/rise-wallet/code-examples';

# Fast VRF

Fast VRF enables verifiable random number generation for smart contracts with realtime delivery through RISE's shred architecture. Results arrive in **3-5ms** via WebSocket, enabling responsive gaming experiences.

<Callout type="warn" title="Mainnet Production Readiness">
  The current VRF implementation on testnet is designed for development and testing. For mainnet deployment, additional security measures are required:

  * **Enhanced Verification**: Improved proof verification mechanisms must be implemented in contracts to ensure the backend cannot manipulate randomness outcomes
  * **Spam Prevention**: Production contracts should implement access control (whitelisting) or request fees to prevent spam and ensure fair usage
</Callout>

## Overview

Fast VRF provides cryptographically secure randomness for smart contracts with millisecond-level response times. Traditional VRF solutions require multiple block confirmations, taking seconds or minutes. RISE's shred architecture delivers VRF results instantly through WebSocket subscriptions, enabling truly responsive gaming and DeFi applications with standard Solidity interfaces.

## Interactive Demo

Try the dice game below. It uses RISE Wallet to request a random number, which is fulfilled instantly by the VRF Coordinator.

<ComponentPreviewTabs code={CODE_EXAMPLES.dice}>
  <DiceGameWidget />
</ComponentPreviewTabs>

## Key Features

* **3-5ms response times**: VRF results delivered faster than a blink
* **Realtime updates**: WebSocket subscriptions for instant notifications
* **Full EVM compatibility**: Standard Solidity interfaces work with existing tooling
* **Cryptographically secure**: Verifiable randomness you can trust

## Common Use Cases

* Gaming: dice rolls, card shuffling, loot generation
* NFT minting with random trait generation
* DeFi lottery and reward distribution
* DAO jury selection and voting mechanisms

## VRF Coordinator

| Network          | Address                                                                                                                                                                                                                                                        |
| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **RISE Testnet** | <span className="inline-flex items-center">[`0x9d57aB4517ba97349551C876a01a7580B1338909`](https://explorer.testnet.riselabs.xyz/address/0x9d57aB4517ba97349551C876a01a7580B1338909)<CopyAddress address="0x9d57aB4517ba97349551C876a01a7580B1338909" /></span> |

## Get Started

<Cards>
  <Card icon={<Zap />} title="Quickstart" href="/docs/builders/vrf/quickstart" description="Build a dice game in 15 minutes" />

  <Card icon={<Code />} title="Smart Contracts" href="/docs/builders/vrf/smart-contracts" description="Integration guide and patterns" />

  <Card icon={<Radio />} title="Realtime Tracking" href="/docs/builders/vrf/real-time" description="WebSocket event subscriptions" />
</Cards>
