Show / Hide Table of Contents

Class JavaRandom

Simple random class (host)

Inheritance
System.Object
JavaRandom
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
public class JavaRandom

Constructors

JavaRandom(UInt64)

constructor

Declaration
public JavaRandom(ulong s)
Parameters
Type Name Description
System.UInt64 s

seed

Methods

Next(Int32)

generates a random unsigned int 32

Declaration
public uint Next(int bits)
Parameters
Type Name Description
System.Int32 bits
Returns
Type Description
System.UInt32

nextFloat()

generates a random float32

Declaration
public float nextFloat()
Returns
Type Description
System.Single
Back to top Generated by DocFX