Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.math.rand
  • Platforms: .NET, .NET Standard 2.0, Island

Methods


ExpFloat64

 

class method ExpFloat64: float64

 

static float64 ExpFloat64()

 

static func ExpFloat64() -> float64

 

func ExpFloat64() float64

 

Shared Function ExpFloat64() As float64

Float32

 

class method Float32: float32

 

static float32 Float32()

 

static func Float32() -> float32

 

func Float32() float32

 

Shared Function Float32() As float32

Float64

 

class method Float64: float64

 

static float64 Float64()

 

static func Float64() -> float64

 

func Float64() float64

 

Shared Function Float64() As float64

Int

 

class method Int: int

 

static int Int()

 

static func Int() -> int

 

func Int() int

 

Shared Function Int() As int

Int31

 

class method Int31: int32

 

static int32 Int31()

 

static func Int31() -> int32

 

func Int31() int32

 

Shared Function Int31() As int32

Int31n

 

class method Int31n(n: int32): int32

 

static int32 Int31n(int32 n)

 

static func Int31n(_ n: int32) -> int32

 

func Int31n(n int32) int32

 

Shared Function Int31n(n As int32) As int32

Parameters:

  • n:

Int63

 

class method Int63: int64

 

static int64 Int63()

 

static func Int63() -> int64

 

func Int63() int64

 

Shared Function Int63() As int64

Int63n

 

class method Int63n(n: int64): int64

 

static int64 Int63n(int64 n)

 

static func Int63n(_ n: int64) -> int64

 

func Int63n(n int64) int64

 

Shared Function Int63n(n As int64) As int64

Parameters:

  • n:

Intn

 

class method Intn(n: int): int

 

static int Intn(int n)

 

static func Intn(_ n: int) -> int

 

func Intn(n int) int

 

Shared Function Intn(n As int) As int

Parameters:

  • n:

New

 

class method New(src: Source): Reference<Rand>

 

static Reference<Rand> New(Source src)

 

static func New(_ src: Source) -> Reference<Rand>

 

func New(src Source) Reference<Rand>

 

Shared Function New(src As Source) As Reference<Rand>

Parameters:

  • src:

NewSource

 

class method NewSource(seed: int64): Source

 

static Source NewSource(int64 seed)

 

static func NewSource(_ seed: int64) -> Source

 

func NewSource(seed int64) Source

 

Shared Function NewSource(seed As int64) As Source

Parameters:

  • seed:

NewZipf

 

class method NewZipf(r: Reference<Rand>; s: float64; v: float64; imax: uint64): Reference<Zipf>

 

static Reference<Zipf> NewZipf(Reference<Rand> r, float64 s, float64 v, uint64 imax)

 

static func NewZipf(_ r: Reference<Rand>, _ s: float64, _ v: float64, _ imax: uint64) -> Reference<Zipf>

 

func NewZipf(r Reference<Rand>, s float64, v float64, imax uint64) Reference<Zipf>

 

Shared Function NewZipf(r As Reference<Rand>, s As float64, v As float64, imax As uint64) As Reference<Zipf>

Parameters:

  • r:
  • s:
  • v:
  • imax:

NormFloat64

 

class method NormFloat64: float64

 

static float64 NormFloat64()

 

static func NormFloat64() -> float64

 

func NormFloat64() float64

 

Shared Function NormFloat64() As float64

Perm

 

class method Perm(n: int): Slice<Int64>

 

static Slice<Int64> Perm(int n)

 

static func Perm(_ n: int) -> Slice<Int64>

 

func Perm(n int) Slice<Int64>

 

Shared Function Perm(n As int) As Slice<Int64>

Parameters:

  • n:

Read

 

class method Read(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) Read(Slice<Byte> p)

 

static func Read(_ p: Slice<Byte>) -> (n:Int64, err:error)

 

func Read(p Slice<Byte>) (n Int64, err error)

 

Shared Function Read(p As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • p:

Seed

 

class method Seed(seed: int64)

 

static void Seed(int64 seed)

 

static func Seed(_ seed: int64)

 

func Seed(seed int64)

 

Shared Sub Seed(seed As int64)

Parameters:

  • seed:

Shuffle

 

class method Shuffle(n: int; swap: Action<Int64, Int64>)

 

static void Shuffle(int n, Action<Int64, Int64> swap)

 

static func Shuffle(_ n: int, _ swap: Action<Int64, Int64>)

 

func Shuffle(n int, swap Action<Int64, Int64>)

 

Shared Sub Shuffle(n As int, swap As Action (Of Int64, Int64))

Parameters:

  • n:
  • swap:

Uint32

 

class method Uint32: uint32

 

static uint32 Uint32()

 

static func Uint32() -> uint32

 

func Uint32() uint32

 

Shared Function Uint32() As uint32

Uint64

 

class method Uint64: uint64

 

static uint64 Uint64()

 

static func Uint64() -> uint64

 

func Uint64() uint64

 

Shared Function Uint64() As uint64