Skip to content

Verifiable randomness for on-chain games.

Pay per request in the native token. Before your callback runs, the coordinator checks a proof on-chain that nobody chose the seed.

Newest seed on each chain

Proof checked on-chain
  • Ronin

    Reading the newest Ronin seed…

  • Base

    Reading the newest Base seed…

  • Robinhood

    Reading the newest Robinhood seed…

  • Ronin

    Live

    Fee per request

    $0.005list fee

    Promonative $0.01

  • Base

    Live

    Fee per request

    $0.002list fee

  • Robinhood

    Live

    Fee per request

    $0.035list fee

Switch by changing one address

Randoo answers the calls your contract already makes. Pick what you use today to see what changes.

Dice.sol1 line changed
contract Dice is VRFConsumer {
constructor() VRFConsumer(
Removed: 0x16a62a921e7fec5bf867ff5c805b662db757b778
Added: 0xC66eB2e7EE91145875000Ad46B55600000000001
) {}
function roll() external payable {
_requestRandomness(
msg.value, 250_000,
23 gwei,
msg.sender
);
}
function _fulfillRandomSeed(
bytes32 reqHash, uint256 seed
) internal override { _settle(seed); }
}

Randoo implements the native coordinator's interface. Change the address in your constructor. Your _requestRandomness call and your _fulfillRandomSeed callback stay as they are.

Read the Ronin migration guide

Using block.prevrandao on Robinhood? It is constant there, so every roll repeats. Replace prevrandao with a VRF

After your contract asks for a seed

  1. 1

    The oracle sees the request and answers as soon as it has one confirmation.

  2. 2

    The coordinator checks the proof on-chain. A bad proof never reaches your contract.

  3. 3

    Your callback receives the seed, and the coordinator refunds the callback gas it did not use.

  4. 4

    The oracle retries a stuck fulfillment, never above the gas price you declared.

Where a seed decides the outcome

  • Loot boxes and drops

    Roll item rarity on-chain so players can verify the drop. The coordinator checks the seed's proof before your callback assigns the item.

    Tested loot box contract with VRF

    if (seed % odds == 0) _drop(LEGENDARY);
  • Dice, cards and matches

    Settle a roll, a shuffle or a critical hit with a seed the loser can check on the explorer, not a number the server picked.

    Tested dice game contract with VRF

    uint256 face = seed % 6 + 1;
  • NFT mint order and reveals

    Assign token IDs or reveal metadata from a VRF seed, so nobody can re-roll the mint order once the request is sent.

    Tested NFT reveal contract with VRF

    tokenURI = uris[seed % uris.length];
  • Raffles and lucky draws

    Pick a winner from a snapshot of entries. The seed depends on the request block's hash, and the coordinator checks its proof on-chain.

    Tested raffle contract with VRF

    winner = entrants[seed % entrants.length];

Questions

What is Randoo?

Randoo is a VRF coordinator for games on Ronin, Base and Robinhood. A game contract requests randomness, pays in the chain's native token, and receives a seed whose VRF proof the coordinator checks on-chain before the callback. On Ronin it is a drop-in for native Ronin VRF at a promotional price. On Base and Robinhood it also accepts Chainlink VRF v2.5 wrapper requests.

What is a verifiable random function (VRF)?

A verifiable random function (VRF) produces a random number plus a proof that it was computed from a secret key and a public input. A contract that checks the proof can use the number without trusting whoever delivered it. The coordinator checks the proof on-chain before it calls the consumer back.

What is Ronin VRF?

Ronin VRF is the on-chain verifiable random function that Ronin games use. A contract calls requestRandomSeed on a coordinator and receives a proven random seed in rawFulfillRandomSeed. Native Ronin VRF is the Sky Mavis coordinator. On Ronin, Randoo is a separate drop-in coordinator with the same IRoninVRFCoordinatorForConsumers interface at a promotional price below the native $0.01 service fee. Ronin VRF docs

Is Randoo the same as native Sky Mavis VRF?

No. Native Ronin VRF is the Sky Mavis coordinator. Randoo is a separate coordinator with the same consumer interface, its own oracle and its own price. Games opt in by pointing at Randoo's address.

Does Randoo work with Chainlink VRF code?

On Ronin, Base and Robinhood, yes. Randoo accepts the Chainlink VRF v2.5 wrapper calls. A consumer built on VRFV2PlusWrapperConsumerBase deploys with Randoo's address as the wrapper and pays in the network's native token. Paying in LINK reverts. Randoo has no subscriptions.

Can a Ronin VRF consumer switch to Chainlink VRF on Ronin?

Not by changing an address. Chainlink VRF v2.5 runs on Ronin, but its consumers inherit VRFConsumerBaseV2Plus or VRFV2PlusWrapperConsumerBase, request with requestRandomWords or requestRandomnessPayInNative, and receive words in fulfillRandomWords. A consumer built on native Ronin VRF's VRFConsumer uses requestRandomSeed and rawFulfillRandomSeed, so its request, callback and fee handling would be rewritten. On Randoo the same consumer keeps its code and changes one address.

What is the Ronin VRF coordinator address?

Native Ronin VRF (Sky Mavis) is at 0x16a62a921e7fec5bf867ff5c805b662db757b778 on mainnet and 0xa60c1e07fa030e4b49eb54950adb298ab94dd312 on Saigon. Randoo's coordinator is 0xC66eB2e7EE91145875000Ad46B55600000000001 on both chains. Point a new or migrated consumer at the Randoo address to use Randoo.

How much does a request cost?

The service fee is $0.005 per request on Ronin, a promotional price below native Ronin VRF's $0.01. It is $0.002 on Base and $0.035 on Robinhood. Gas for your callback comes on top. You pay both in the chain's native token, RON on Ronin and ETH on Base and Robinhood, at the fee each coordinator quotes on-chain. There is no subscription, and the coordinator refunds unused gas after the callback.

How long does a request take?

Block times are 2 s on Ronin, 0.2 s on Base, 0.1 s on Robinhood. The oracle watches each network for requests and sends the proof and seed as soon as a request has its one confirmation. The homepage shows each network's live median fulfill time.

Roll a seed, then check its proof.

The playground rolls on a testnet for free, no wallet needed.

Roll a free seed