Rand

Overview

Location

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

Instance Methods


constructor

 

constructor

 

Rand()

 

init()

 

Sub New()

constructor (Rand)

 

constructor(value: Rand)

 

Rand(Rand value)

 

init(_ value: Rand)

 

Sub New(value As Rand)

Parameters:

  • value:

constructor (Source, Source64, int64, int8) Island

 

constructor(asrc: Source; as64: Source64; areadVal: int64; areadPos: int8)

 

Rand(Source asrc, Source64 as64, int64 areadVal, int8 areadPos)

 

init(_ asrc: Source, _ as64: Source64, _ areadVal: int64, _ areadPos: int8)

 

Sub New(asrc As Source, as64 As Source64, areadVal As int64, areadPos As int8)

Parameters:

  • asrc:
  • as64:
  • areadVal:
  • areadPos:

constructor (Source, Source64, int64, SByte) .NET, .NET Standard 2.0

 

constructor(asrc: Source; as64: Source64; areadVal: int64; areadPos: SByte)

 

Rand(Source asrc, Source64 as64, int64 areadVal, SByte areadPos)

 

init(_ asrc: Source, _ as64: Source64, _ areadVal: int64, _ areadPos: SByte)

 

Sub New(asrc As Source, as64 As Source64, areadVal As int64, areadPos As SByte)

Parameters:

  • asrc:
  • as64:
  • areadVal:
  • areadPos:

ExpFloat64

 

method ExpFloat64: float64

 

float64 ExpFloat64()

 

func ExpFloat64() -> float64

 

func ExpFloat64() float64

 

Function ExpFloat64() As float64

Float32

 

method Float32: float32

 

float32 Float32()

 

func Float32() -> float32

 

func Float32() float32

 

Function Float32() As float32

Float64

 

method Float64: float64

 

float64 Float64()

 

func Float64() -> float64

 

func Float64() float64

 

Function Float64() As float64

Int

 

method Int: int

 

int Int()

 

func Int() -> int

 

func Int() int

 

Function Int() As int

Int31

 

method Int31: int32

 

int32 Int31()

 

func Int31() -> int32

 

func Int31() int32

 

Function Int31() As int32

Int31n

 

method Int31n(n: int32): int32

 

int32 Int31n(int32 n)

 

func Int31n(_ n: int32) -> int32

 

func Int31n(n int32) int32

 

Function Int31n(n As int32) As int32

Parameters:

  • n:

Int63

 

method Int63: int64

 

int64 Int63()

 

func Int63() -> int64

 

func Int63() int64

 

Function Int63() As int64

Int63n

 

method Int63n(n: int64): int64

 

int64 Int63n(int64 n)

 

func Int63n(_ n: int64) -> int64

 

func Int63n(n int64) int64

 

Function Int63n(n As int64) As int64

Parameters:

  • n:

Intn

 

method Intn(n: int): int

 

int Intn(int n)

 

func Intn(_ n: int) -> int

 

func Intn(n int) int

 

Function Intn(n As int) As int

Parameters:

  • n:

NormFloat64

 

method NormFloat64: float64

 

float64 NormFloat64()

 

func NormFloat64() -> float64

 

func NormFloat64() float64

 

Function NormFloat64() As float64

Perm

 

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

 

Slice<Int64> Perm(int n)

 

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

 

func Perm(n int) Slice<Int64>

 

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

Parameters:

  • n:

Read

 

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

 

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

 

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

 

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

 

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

Parameters:

  • p:

Seed

 

method Seed(seed: int64)

 

void Seed(int64 seed)

 

func Seed(_ seed: int64)

 

func Seed(seed int64)

 

Sub Seed(seed As int64)

Parameters:

  • seed:

Shuffle

 

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

 

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

 

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

 

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

 

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

Parameters:

  • n:
  • swap:

Uint32

 

method Uint32: uint32

 

uint32 Uint32()

 

func Uint32() -> uint32

 

func Uint32() uint32

 

Function Uint32() As uint32

Uint64

 

method Uint64: uint64

 

uint64 Uint64()

 

func Uint64() -> uint64

 

func Uint64() uint64

 

Function Uint64() As uint64