Random

Overview

Random helper classes for psuedo random number generation.

Location

 

constructor

 

constructor

 

Random()

 

init()

 

Random()

 

Sub New()

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

 

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)

 

constructor(aSeedData: Int32)

 

Random(Int32 aSeedData)

 

init(_ aSeedData: Int32)

 

Random(Int32 aSeedData)

 

Sub New(aSeedData As Int32)

Parameters:

  • aSeedData:

CryptoSafeRandom

 

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)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

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

Set

 

method Set(aVal: UInt32)

 

void Set(UInt32 aVal)

 

func Set(_ aVal: UInt32)

 

void Set(UInt32 aVal)

 

Sub Set(aVal As UInt32)

Parameters:

  • aVal:

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

 

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

 

constructor

 

Random()

 

init()

 

Random()

 

Sub New()

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

 

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)

 

constructor(aSeedData: Int32)

 

Random(Int32 aSeedData)

 

init(_ aSeedData: Int32)

 

Random(Int32 aSeedData)

 

Sub New(aSeedData As Int32)

Parameters:

  • aSeedData:

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

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

Set

 

method Set(aVal: UInt32)

 

void Set(UInt32 aVal)

 

func Set(_ aVal: UInt32)

 

void Set(UInt32 aVal)

 

Sub Set(aVal As UInt32)

Parameters:

  • aVal:

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