rng
Generate random bytes on-chain
Overview
Signature
def rng(
w3: Web3,
*,
num_bytes: int,
pers: bytes = b"",
) -> int
async def async_rng(
w3: AsyncWeb3,
*,
num_bytes: int,
pers: bytes = b"",
) -> intParameters
Parameter
Type
Required
Description
Returns
Type
Description
Examples
Basic Usage
With Personalization
Async Usage
Gas Cost
Notes
See Also
Last updated

