James Bachini

Randomness

  • Random Numbers in Solidity | Solidity Tips & Examples

    Random Numbers in Solidity | Solidity Tips & Examples

    Generating a random number in Solidity is not as straightforward as in some other programming languages, because the Ethereum blockchain is deterministic, meaning that multiple execution clients or nodes must come to the same conclusion about the state of the blockchain. For many use cases using the new prevrandao global variable provides “good enough” randomness…