Random
type Random
A typed view of the on-chain `0x2::random::Random` object (the `0x8` singleton holding the global randomness state).
type Random struct {
// contains filtered or unexported fields
}
func LiftFromExternalRandom
func LiftFromExternalRandom(handle uint64) *Random
func RandomTryFromBcs
func RandomTryFromBcs(bytes []byte) (*Random, error)
Decode from BCS bytes, without validating the on-chain type tag.
func RandomTryFromObject
func RandomTryFromObject(object *Object) (*Random, error)
Decode from an on-chain object, validating its Move type tag.
func (*Random) DebugString
func (_self *Random) DebugString() string
func (*Random) Destroy
func (object *Random) Destroy()
func (*Random) Id
func (_self *Random) Id() *ObjectId
The object's ID.