# Chainlink VRF v2

<div align="left"><figure><img src="/files/O3VPR9brEB99XXir9Ubt" alt="" width="332"><figcaption></figcaption></figure></div>

## Verifiable source of randomness

Chainlink VRF provides cryptographically secure randomness for your blockchain-based applications.

{% embed url="<https://www.youtube.com/watch?v=eRzLNfn4LGc>" %}

## Provably random

Provably random, tamper-proof, and low cost randomness for smart contracts

<figure><img src="/files/oLeO1EZPQy7FFJnldqRX" alt=""><figcaption></figcaption></figure>

## Easily integration

Easily integrate verifiable randomness in your smart contract:

```
unit256 public randomResult;
function fulfillRandomness(uint256 requestId, unit256[] randomness) internal override {
      randomResult = (randomness[0] % 50) + 1;
}

```

## Provably secure applications

Build provably secure blockchain-based applications with Chainlink VRF across multiple use cases:

<figure><img src="/files/tPr0VW9hHmyZrKpqVnuQ" alt=""><figcaption></figcaption></figure>

## Grow your reach

Grow your application’s reach with Chainlink VRF, a purpose-built RNG for smart contracts

#### Random number generation (RNG) for smart contracts

* Produce fair and unbiasable randomness for your blockchain-based application’s outcome
* All random number results are verifiable before becoming available to consuming smart contracts
* Oracles are unable to manipulate the generated result, the only thing they can do is not respond

#### Provide your users with a more trustworthy experience

* Build better experiences by leveraging random outcomes in your blockchain-based application
* Provide users with cryptographic proof of your application’s integrity to facilitate a high level of trust
* Broaden your user base by leveraging fair and unbiasable randomness for your application’s outcomes

#### Provably-fair and verifiable randomness

* On-chain block data is used as inputs to the RNG, which is combined with the oracle’s private key to generate a random value and proof
* Each random result is verified on-chain with cryptographic proofs
* Malicious users, node operators, and smart contract admins cannot tamper with the resulting randomness

#### Randomness on a massive scale

* Lower gas fees with Subscription Management App while delegating access to the Subscription’s balance to multiple consumer addresses
* Take advantage of the most configurable VRF experience by setting custom callback gas limits, block confirmation time
* Get even more randomness per request in an intuitive way

## Official resources

Website: <https://chain.link/vrf>

Docs: <https://docs.chain.link/vrf/v2/introduction>

Direct Funding Method: <https://docs.chain.link/vrf/v2/direct-funding>

## Supported Networks

Relink makes this demanded service available on these networks:

#### Horizen EON

{% content-ref url="/pages/EgxLczwqAm8neC2zsRXb" %}
[Horizen EON](/supported-networks/horizen-eon.md)
{% endcontent-ref %}

* Proxy Contract: <https://eon-explorer.horizenlabs.io/address/0xC8e11C15cf94a456209B7AbF110481Eb86B50C0c>
* Fee: 0.015 ZEN
* Default Forward Gas: 120,000
* Maximum Random Values: 10
* Minimum confirmations: 3

#### Stellar Soroban&#x20;

{% content-ref url="/pages/HLgy02XerJQ82ax3h8mn" %}
[Stellar Soroban](/supported-networks/stellar-soroban.md)
{% endcontent-ref %}

*<mark style="background-color:yellow;">(coming soon)</mark>*


---

# 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.relink.services/chainlink-products/chainlink-vrf-v2.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.
