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

 

// .NET, .NET Standard 2.0
class method New(src: Source): Memory<Rand>
// Island
class method New(src: Source): Memory<Rand>

 

// .NET, .NET Standard 2.0
static Memory<Rand> New(Source src)
// Island
static Memory<Rand> New(Source src)

 

// .NET, .NET Standard 2.0
static func New(_ src: Source) -> Memory<Rand>
// Island
static func New(_ src: Source) -> Memory<Rand>

 

// .NET, .NET Standard 2.0
func New(src Source) Memory<Rand>
// Island
func New(src Source) Memory<Rand>

 

// .NET, .NET Standard 2.0
Shared Function New(src As Source) As Memory<Rand>
// Island
Shared Function New(src As Source) As Memory<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

 

// .NET, .NET Standard 2.0
class method NewZipf(r: Memory<Rand>; s: float64; v: float64; imax: uint64): Memory<Zipf>
// Island
class method NewZipf(r: Memory<Rand>; s: float64; v: float64; imax: uint64): Memory<Zipf>

 

// .NET, .NET Standard 2.0
static Memory<Zipf> NewZipf(Memory<Rand> r, float64 s, float64 v, uint64 imax)
// Island
static Memory<Zipf> NewZipf(Memory<Rand> r, float64 s, float64 v, uint64 imax)

 

// .NET, .NET Standard 2.0
static func NewZipf(_ r: Memory<Rand>, _ s: float64, _ v: float64, _ imax: uint64) -> Memory<Zipf>
// Island
static func NewZipf(_ r: Memory<Rand>, _ s: float64, _ v: float64, _ imax: uint64) -> Memory<Zipf>

 

// .NET, .NET Standard 2.0
func NewZipf(r Memory<Rand>, s float64, v float64, imax uint64) Memory<Zipf>
// Island
func NewZipf(r Memory<Rand>, s float64, v float64, imax uint64) Memory<Zipf>

 

// .NET, .NET Standard 2.0
Shared Function NewZipf(r As Memory<Rand>, s As float64, v As float64, imax As uint64) As Memory<Zipf>
// Island
Shared Function NewZipf(r As Memory<Rand>, s As float64, v As float64, imax As uint64) As Memory<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>) -> (Int64, error)

 

func Read(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

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

Parameters:

  • p:

Seed

 

class method Seed(seed: int64)

 

static void Seed(int64 seed)

 

static func Seed(_ seed: int64)

 

// .NET, .NET Standard 2.0
func Seed(seed int64) 
// Island
func Seed(seed int64) void

 

Shared Sub Seed(seed As int64)

Parameters:

  • seed:

Shuffle

 

// .NET, .NET Standard 2.0
class method Shuffle(n: int; swap: Action<Int64, Int64>)
// Island
class method Shuffle(n: int; swap: Action<RemObjects.Elements.System.Int64,RemObjects.Elements.System.Int64>)

 

// .NET, .NET Standard 2.0
static void Shuffle(int n, Action<Int64, Int64> swap)
// Island
static void Shuffle(int n, Action<RemObjects.Elements.System.Int64,RemObjects.Elements.System.Int64> swap)

 

// .NET, .NET Standard 2.0
static func Shuffle(_ n: int, _ swap: Action<Int64, Int64>)
// Island
static func Shuffle(_ n: int, _ swap: Action<RemObjects.Elements.System.Int64,RemObjects.Elements.System.Int64>)

 

// .NET, .NET Standard 2.0
func Shuffle(n int, swap Action<Int64, Int64>) 
// Island
func Shuffle(n int, swap Action<RemObjects.Elements.System.Int64,RemObjects.Elements.System.Int64>) void

 

// .NET, .NET Standard 2.0
Shared Sub Shuffle(n As int, swap As Action (Of Int64, Int64))
// Island
Shared Sub Shuffle(n As int, swap As Action<RemObjects.Elements.System.Int64,RemObjects.Elements.System.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