It is possible to generate truly (not pseudo) random number with specific range inside smart contacts
(for example I need random number between 1 and 60 000 )
Thx!
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityThere is no way to do so. Suppose there exists a way to generate a truly random number in a contract, then two nodes/ miners will generate two different values, thus end up having two different blockchain states. No consensus can be achieved in such scenario.