C# Класс RandomOps.ThreadSafe.Independent

Base-class for making thread-safe PRNGs by creating one PRNG object for each thread. The PRNGs should have very long periods to avoid overlapping. See ThreadSafeMWC256 for an example. This is a simple and reliable way of making an efficient and parallel PRNG, see the paper: P.D. Coddington, Random Number Generators for Parallel Computers, NPAC Technical Report, Version 1.1, 1997.
Наследование: Random
Показать файл Открыть проект

Открытые методы

Метод Описание
Gauss ( ) : double

Draw a Gaussian (or normally) distributed random number, with mean 0 and deviation 1. Thread-safe.

Independent ( ) : System.Threading

Constructs the PRNG-object.

Uniform ( ) : double

Draw a uniform random number in the exclusive range (0,1). Thread-safe.

Описание методов

Gauss() публичный Метод

Draw a Gaussian (or normally) distributed random number, with mean 0 and deviation 1. Thread-safe.
public Gauss ( ) : double
Результат double

Independent() публичный Метод

Constructs the PRNG-object.
public Independent ( ) : System.Threading
Результат System.Threading

Uniform() публичный Метод

Draw a uniform random number in the exclusive range (0,1). Thread-safe.
public Uniform ( ) : double
Результат double