C# Class OpenCvSharp.RNG_MT19937

Mersenne Twister random number generator
operations.hpp
Mostrar archivo Open project: shimat/opencvsharp

Public Methods

Method Description
Next ( ) : uint

updates the state and returns the next 32-bit unsigned integer random number

RNG_MT19937 ( ) : System

RNG_MT19937 ( uint s ) : System

Run ( ) : uint

Run ( uint b ) : uint

returns a random integer sampled uniformly from [0, N).

Seed ( uint s ) : void

Uniform ( double a, double b ) : double

returns uniformly distributed double-precision floating-point random number from [a,b) range

Uniform ( float a, float b ) : float

returns uniformly distributed floating-point random number from [a,b) range

Uniform ( int a, int b ) : int

returns uniformly distributed integer random number from [a,b) range

Method Details

Next() public method

updates the state and returns the next 32-bit unsigned integer random number
public Next ( ) : uint
return uint

RNG_MT19937() public method

public RNG_MT19937 ( ) : System
return System

RNG_MT19937() public method

public RNG_MT19937 ( uint s ) : System
s uint
return System

Run() public method

public Run ( ) : uint
return uint

Run() public method

returns a random integer sampled uniformly from [0, N).
public Run ( uint b ) : uint
b uint
return uint

Seed() public method

public Seed ( uint s ) : void
s uint
return void

Uniform() public method

returns uniformly distributed double-precision floating-point random number from [a,b) range
public Uniform ( double a, double b ) : double
a double
b double
return double

Uniform() public method

returns uniformly distributed floating-point random number from [a,b) range
public Uniform ( float a, float b ) : float
a float
b float
return float

Uniform() public method

returns uniformly distributed integer random number from [a,b) range
public Uniform ( int a, int b ) : int
a int
b int
return int