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
파일 보기 프로젝트 열기: DanWBR/dwsim3

공개 메소드들

메소드 설명
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