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
constructorRandom()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: DoubleDouble NextDouble()func NextDouble() -> DoubleDouble NextDouble()Function NextDouble() As DoubleNextInt
Returns a new random value.
method NextInt: Int32Int32 NextInt()func NextInt() -> Int32Integer NextInt()Function NextInt() As Int32Returns a new int32 value, with max value.
method NextInt(MaxValuePlusOne: Int32): Int32Int32 NextInt(Int32 MaxValuePlusOne)func NextInt(_ MaxValuePlusOne: Int32) -> Int32Integer NextInt(Integer MaxValuePlusOne)Function NextInt(MaxValuePlusOne As Int32) As Int32Parameters:
- MaxValuePlusOne: