Random

Overview

Random number generator class.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

Instance Methods


constructor .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

 

constructor

 

Random()

 

init()

 

Random()

 

Sub New()

constructor init() Toffee

 

init(init )

Parameters:

  • :

constructor (UInt64)

 

constructor(aSeed: UInt64)

 

Random(UInt64 aSeed)

 

init(_ aSeed: UInt64)

 

Random(UInt64 aSeed)

 

Sub New(aSeed As UInt64)

Parameters:

  • aSeed:

NextDouble .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Creates a new random double value

 

method NextDouble: Double

 

Double NextDouble()

 

func NextDouble() -> Double

 

Double NextDouble()

 

Function NextDouble() As Double

NextDouble NextDouble(): Double  virtual Toffee

 

func NextDouble(NextDouble ) -> Double

Parameters:

  • :

NextInt .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Returns a new random value.

 

method NextInt: Int32

 

Int32 NextInt()

 

func NextInt() -> Int32

 

Integer NextInt()

 

Function NextInt() As Int32

NextInt (Int32): Int32

Returns a new int32 value, with max value.

 

method NextInt(MaxValuePlusOne: Int32): Int32

 

Int32 NextInt(Int32 MaxValuePlusOne)

 

func NextInt(_ MaxValuePlusOne: Int32) -> Int32

 

Integer NextInt(Integer MaxValuePlusOne)

 

Function NextInt(MaxValuePlusOne As Int32) As Int32

Parameters:

  • MaxValuePlusOne:

NextInt NextInt(): Int32  virtual Toffee

 

func NextInt(NextInt ) -> Int32

Parameters:

  • :