Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [randomness]

The tag has no usage guidance.

3
votes
4answers
93 views

Random number generation

I know that it's not possible to have a completely 'safe' random generator on block chain. But still wondering how safe it would be if I use a combination of methods like now() and transaction_size() ...
1
vote
1answer
21 views

Validation for contract which has data which varies

How does the EOS contract system handle data which varies? This could be from using a true random number, or receiving real-world data like a token price. Every time the contract executes, different ...
22
votes
4answers
882 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?