RNG

Git Source

Functions

requestRandomness

Request a random number.

function requestRandomness(uint256 _block) external;

Parameters

NameTypeDescription
_blockuint256Block linked to the request.

receiveRandomness

Receive the random number.

function receiveRandomness(uint256 _block) external returns (uint256 randomNumber);

Parameters

NameTypeDescription
_blockuint256Block the random number is linked to.

Returns

NameTypeDescription
randomNumberuint256Random Number. If the number is not ready or has not been required 0 instead.