LogoLogo
WebsiteDiscordTelegramTwitter
  • ๐Ÿ Witnet Oracle Docs
  • Introduction
    • โ“What is Witnet?
      • โš™๏ธOracle Architecture
      • ๐Ÿช™The Witnet Coin (Wit)
      • ๐Ÿ‘›Wallets
      • ๐Ÿค”Frequently Asked Questions
      • ๐Ÿ˜ŽAwesome Witnet
    • ๐Ÿš€Quick Tutorials
      • ๐Ÿ“ˆPrice Feeds
      • ๐ŸŽฒRandomness
      • ๐ŸŒAPIs and HTTP GET/POST
      • โ›๏ธMining Wit
  • Smart contracts developers
    • โ›“๏ธSupported chains
    • ๐Ÿ”ฎWit/Oracle
      • HTTP GET Requests in Solidity
      • HTTP POST Requests in Solidity
      • Query GraphQL APIs in Solidity
      • Dynamic Requests in Solidity
      • UsingWitnet Inheritance
      • API Reference
        • Solidity API
          • Solidity Contracts
            • WitnetRequestBoard
        • Javascript API
        • RADON API
          • RADON Type System
          • RADON Errors
      • Multi-chain Addresses
    • ๐Ÿ’นWit/Price Feeds
      • How To Use Witnet Price Feeds
      • Update Conditions
      • Code Examples
      • API Reference
      • Multi-chain Addresses
        • Arbitrum Price Feeds
        • Avalanche Price Feeds
        • Base Price Feeds
        • Boba Price Feeds
        • Celo Price Feeds
        • Conflux Price Feeds
        • Cronos Price Feeds
        • Dogechain Price Feeds
        • Elastos Price Feeds
        • Ethereum Price Feeds
        • Gnosis Chain Price Feeds
        • Kaia Price Feeds
        • Kava Price Feeds
        • KCC Price Feeds
        • Mantle Price Feeds
        • Meter Price Feeds
        • Metis Price Feeds
        • Moonbeam Price Feeds
        • OKX Price Feeds
        • Optimism Price Feeds
        • Polygon Price Feeds
        • Reef Price Feeds
        • Scroll Price Feeds
        • Syscoin Price Feeds
        • Ultron Price Feeds
        • Request new price feed or chain support
    • ๐ŸŽฒWit/Randomness
      • Generating Randomness
      • WitnetRandomness Contract
      • Low-level Requests
      • Code Examples
      • API Reference
      • Multi-chain Addresses
    • ๐Ÿ—๏ธGuides
      • ๐Ÿ“–Solidity Contracts
        • Appliances
          • ๐Ÿ“ƒWitnetPriceFeeds
          • ๐Ÿ“ƒWitnetRandomness
        • Core
          • ๐Ÿ“ƒWitnetOracle
          • ๐Ÿ“ƒWitnetRadonRegistry
          • ๐Ÿ“ƒWitnetRequest
          • ๐Ÿ“ƒWitnetRequestFactory
          • ๐Ÿ“ƒWitnetRequestTemplate
        • Mockups
          • ๐Ÿ“ƒUsingWitnet
          • ๐Ÿ“ƒUsingWitnetRandomness
          • ๐Ÿ“ƒUsingWitnetRequest
          • ๐Ÿ“ƒUsingWitnetRequestTemplate
          • ๐Ÿ“ƒWitnetRandomnessRequestConsumer
          • ๐Ÿ“ƒWitnetRequestConsumer
          • ๐Ÿ“ƒWitnetRequestTemplateConsumer
      • ๐Ÿง™Solidity Wizard
    • ๐ŸŽ“Tutorials
      • Building a Satoshi/Wei custom price feed
  • Witnet SDK
    • ๐Ÿ‘‹Introduction
    • ๐Ÿš€Getting Started
    • ๐Ÿ—๏ธHow-to Guides
      • Connect to a Wit/RPC provider
      • Query stake entries in Witnet
      • Manage Witnet wallets
      • Manage Witnet UTXOs
      • Manage Witnet transactions
    • ๐ŸŽ“Tutorials
    • ๐Ÿ“šReference Material
      • ๐Ÿ”ŒAPIs
        • Wit/Node JSON-RPC API
  • Witnet Validators
    • ๐Ÿ’ปNode Requirements
    • ๐Ÿš€Getting Started (Docker)
    • ๐Ÿ”ŽNext steps
    • ๐Ÿค“Advanced Setups
      • Run node as a systemd service
      • Run node with docker compose
      • Paranoid mode (Witnet over proxies and Tor)
      • Configuration file
    • โŒจ๏ธCLI Reference
  • ๐Ÿ—œ๏ธCompile from Source Code
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Smart contracts developers
  2. Wit/Randomness

Generating Randomness

PreviousWit/RandomnessNextWitnetRandomness Contract

Last updated 12 months ago

Was this helpful?

There are two major approaches to generate unpredictable and malleable randomness from the Witnet oracle:

  • Using the , also known as the ยซWitnet Randomness Oracleยป, that can be used by practically all kind of dapps, and that it has been already pre-deployed by the Witnet Foundation on .

  • Posting a low-level to the entrypoint.

๐ŸŽฒ
WitnetRandomness Contract
multiple chains
WitnetRequestRandomness
WitnetRequestBoard