Randomness
Randomness is native to the protocol and comes from a stream of cryptographically secure bits from the public keys. The randomness functions are:
TFHE.randEuint8()
TFHE.randEuint16()
TFHE.randEuint32()
Please note that these randomness functions cannot be used inside a view function.
The following dApps use on-chain randomness, check them out:
Last updated