C# Класс RandomOps.RanQD

Pseudo-Random Number Generator (PRNG) based on the RanQD1 (Quick and Dirty) algorithm from the book: 'Numerical Recipes in C' chapter 7.1. Not thread-safe.
Наследование: RanUInt32
Показать файл Открыть проект

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

Метод Описание
RanQD ( ) : System

Constructs the PRNG-object and seeds the PRNG with the current time of day. This is what you will mostly want to use.

RanQD ( UInt32 seed ) : System

Constructs the PRNG-object using the designated seed. This is useful if you want to repeat experiments with the same sequence of pseudo-random numbers.

Rand ( ) : UInt32

Draw a random number in inclusive range {0, .., RandMax}

Защищенные методы

Метод Описание
Seed ( UInt32 seed ) : void

Seed with an integer.

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

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

Constructs the PRNG-object and seeds the PRNG with the current time of day. This is what you will mostly want to use.
public RanQD ( ) : System
Результат System

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

Constructs the PRNG-object using the designated seed. This is useful if you want to repeat experiments with the same sequence of pseudo-random numbers.
public RanQD ( UInt32 seed ) : System
seed System.UInt32
Результат System

Rand() публичный закрытый Метод

Draw a random number in inclusive range {0, .., RandMax}
public final Rand ( ) : UInt32
Результат System.UInt32

Seed() защищенный закрытый Метод

Seed with an integer.
protected final Seed ( UInt32 seed ) : void
seed System.UInt32
Результат void