Questions tagged [randomness]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26 votes
4 answers
4k views

How can I generate random numbers inside a smart contract?

If I'm building a smart contract that requires random numbers (e.g. games of chance), how do I reliably generate randomness inside a smart contract?
John Haager's user avatar
  • 1,844