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

Instance Methods


constructor



 

constructor


 

Random()


 

init()


 

Random()


 

Sub New()


constructor (UInt64)



 

constructor(aSeed: UInt64)


 

Random(UInt64 aSeed)


 

init(_ aSeed: UInt64)


 

Random(UInt64 aSeed)


 

Sub New(aSeed As UInt64)

Parameters:

  • aSeed:

NextDouble

Creates a new random double value



 

method NextDouble: Double


 

Double NextDouble()


 

func NextDouble() -> Double


 

Double NextDouble()


 

Function NextDouble() As Double


NextInt

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: