Resources
Docs
Demos
Tools
Changelog
Get Certified
For AI agents: use
llms.txt
as the documentation index. Retrieve the smallest relevant .md page first.
Overview
The problem: Why randomness needs special handling
The solution: Consensus-safe randomness
Usage
Common use cases
Working with big.Int random values
Complete example: Random lottery
Best practices
Do:
Don't:
Mode-aware behavior
DON mode (default)
Node mode
Important: Mode isolation
FAQ
On this page
CRE
Quick Links
Github
CRE
Using Randomness in Workflows
Get the latest Chainlink content straight to your inbox.
Email Address