Random Number Generator in Contracts

Ardor lightweight contracts have a fast and secure method for random number generation.

Random Number Generator in Contracts. Image Credit: Nick Hillier from Unsplash

Blockchain-based contracts often need to generate random numbers for use cases such as gaming, gambling, simulation and more.

Furthermore, these random numbers must be non-predictable so that developers, users, and block generators cannot predict them in advance and use this knowledge to make a profit.

The key to be able to generate reproducible non-predictable random numbers are: