RNG
Functions
requestRandomness
Request a random number.
function requestRandomness(uint256 _block) external;
Parameters
Name | Type | Description |
---|---|---|
_block | uint256 | Block linked to the request. |
receiveRandomness
Receive the random number.
function receiveRandomness(uint256 _block) external returns (uint256 randomNumber);
Parameters
Name | Type | Description |
---|---|---|
_block | uint256 | Block the random number is linked to. |
Returns
Name | Type | Description |
---|---|---|
randomNumber | uint256 | Random Number. If the number is not ready or has not been required 0 instead. |