Random

Overview

Random helper classes for psuedo random number generation.

Location

 

constructor

Initialize this based on the current time.

 

constructor

 

Random()

 

init()

 

Random()

 

Sub New()

constructor (array [0..15] of UInt32)

Initialize this with a lot of seed data.

 

constructor(aSeedData: array [0..15] of UInt32)

 

Random(array [0..15] of UInt32 aSeedData)

 

init(_ aSeedData: array [0..15] of UInt32)

 

Random(array [0..15] of UInt32 aSeedData)

 

Sub New(aSeedData As array [0..15] of UInt32)

Parameters:

  • aSeedData:

constructor (Int32)

Initialize this with a simple seed value.

 

constructor(aSeedData: Int32)

 

Random(Int32 aSeedData)

 

init(_ aSeedData: Int32)

 

Random(Int32 aSeedData)

 

Sub New(aSeedData As Int32)

Parameters:

  • aSeedData:

CryptoSafeRandom

Fills aDest with crypto safe random data.

 

class method CryptoSafeRandom(aDest: array of Byte; aStart: Int32; aLength: Int32)

 

static void CryptoSafeRandom(Byte[] aDest, Int32 aStart, Int32 aLength)

 

static func CryptoSafeRandom(_ aDest: Byte..., _ aStart: Int32, _ aLength: Int32)

 

static void CryptoSafeRandom(Byte[] aDest, Int32 aStart, Int32 aLength)

 

Shared Sub CryptoSafeRandom(aDest As Byte(), aStart As Int32, aLength As Int32)

Parameters:

  • aDest:
  • aStart:
  • aLength:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Random

Gets a next random value.

 

method Random: UInt32

 

UInt32 Random()

 

func Random() -> UInt32

 

UInt32 Random()

 

Function Random() As UInt32

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

 

CryptoSafeRandom

Fills aDest with crypto safe random data.

 

class method CryptoSafeRandom(aDest: array of Byte; aStart: Int32; aLength: Int32)

 

static void CryptoSafeRandom(Byte[] aDest, Int32 aStart, Int32 aLength)

 

static func CryptoSafeRandom(_ aDest: Byte..., _ aStart: Int32, _ aLength: Int32)

 

static void CryptoSafeRandom(Byte[] aDest, Int32 aStart, Int32 aLength)

 

Shared Sub CryptoSafeRandom(aDest As Byte(), aStart As Int32, aLength As Int32)

Parameters:

  • aDest:
  • aStart:
  • aLength:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor

Initialize this based on the current time.

 

constructor

 

Random()

 

init()

 

Random()

 

Sub New()

constructor (array [0..15] of UInt32)

Initialize this with a lot of seed data.

 

constructor(aSeedData: array [0..15] of UInt32)

 

Random(array [0..15] of UInt32 aSeedData)

 

init(_ aSeedData: array [0..15] of UInt32)

 

Random(array [0..15] of UInt32 aSeedData)

 

Sub New(aSeedData As array [0..15] of UInt32)

Parameters:

  • aSeedData:

constructor (Int32)

Initialize this with a simple seed value.

 

constructor(aSeedData: Int32)

 

Random(Int32 aSeedData)

 

init(_ aSeedData: Int32)

 

Random(Int32 aSeedData)

 

Sub New(aSeedData As Int32)

Parameters:

  • aSeedData:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Random

Gets a next random value.

 

method Random: UInt32

 

UInt32 Random()

 

func Random() -> UInt32

 

UInt32 Random()

 

Function Random() As UInt32

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String