Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [randomness]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26 votes
4 answers

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