Random

The library for generating of pseudo random numbers

create create(uint256 seed) → struct Random.RandomGenerator internal

Create an instance of RandomGenerator

createFromEntropy createFromEntropy(bytes entropy) → struct Random.RandomGenerator internal

random random(struct Random.RandomGenerator self) → uint256 internal

Generates random value

random random(struct Random.RandomGenerator self, uint256 max) → uint256 internal

Generates random value in range [0, max)