Show / Hide Table of Contents

Class RandomExtensions

This extension class provides some convenient methods to deal with IRandom.

Inheritance
Object
RandomExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
System.Object.ToString()
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public static class RandomExtensions

Methods

| Improve this Doc View Source

GenerateRandomGuid(IRandom)

Generates a UUID version 4, i.e., a random Guid. Please refer to RFC 4122.

Declaration
public static Guid GenerateRandomGuid(this IRandom random)
Parameters
Type Name Description
IRandom random

IRandom to generate a random Guid.

Returns
Type Description
Guid

Generated random Guid.

See Also
IRandom
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium