2

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!

yanik
  • 473
  • 6
  • 12

1 Answers1

2

There 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.

Loi.Luu
  • 2,103
  • 3
  • 13
  • 16