# VRF Subscriptions

### Introduction

[Chainlink VRF (Verifiable Random Function) ](https://docs.chain.link/vrf)is a provably fair and verifiable random number generator (RNG) that enables smart contracts to access random values without compromising security or usability. This module makes it easy to manage Chainlink Functions Subscriptions.

### Usage

To start using this module, initialize the Dev3 SDK & Chainlink VRF instances first, like this:

```typescript
import { Dev3SDK, VRFCoordinator } from "dev3-sdk";

var dev3: Dev3SDK;
var coordinator: VRFCoordinator;

async function init() {
    dev3 = new Dev3SDK("<your api key>", "<your project id>");
    coordinator = new VRFCoordinator();
    return coordinator.init();
}

init();
```

Once initialization function is finished, you can start using the VRF Subscriptions module by interacting with the coordinator object.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dev3.sh/welcome-to-dev3/integrations/chainlink-subscriptions/vrf-subscriptions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
