RNG Class OpenCvSharp Class Library
Random Number Generator. The class implements RNG using Multiply-with-Carry algorithm.
Inheritance Hierarchy

SystemObject
  OpenCvSharp.CPlusPlusRNG

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class RNG

The RNG type exposes the following members.

Constructors

  NameDescription
Public methodRNG
Initializes a new instance of the RNG class
Public methodRNG(UInt64)
Initializes a new instance of the RNG class
Top
Properties

  NameDescription
Public propertyState
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodFill
Protected methodFinalize (Inherited from Object.)
Public methodGaussian
returns Gaussian random variate with mean zero.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNext
updates the state and returns the next 32-bit unsigned integer random number
Public methodRun
Public methodRun(UInt32)
returns a random integer sampled uniformly from [0, N).
Public methodToString (Inherited from Object.)
Public methodUniform(Double, Double)
returns uniformly distributed double-precision floating-point random number from [a,b) range
Public methodUniform(Int32, Int32)
returns uniformly distributed integer random number from [a,b) range
Public methodUniform(Single, Single)
returns uniformly distributed floating-point random number from [a,b) range
Top
Operators

  NameDescription
Public operatorStatic member(RNG to Byte)
Public operatorStatic member(RNG to SByte)
Public operatorStatic member(RNG to UInt16)
Public operatorStatic member(RNG to Int16)
Public operatorStatic member(RNG to UInt32)
Public operatorStatic member(RNG to Int32)
Public operatorStatic member(RNG to Single)
Public operatorStatic member(RNG to Double)
Top
Remarks

operations.hpp
See Also

Reference