PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | List of all members
PGENLib.PCG Class Reference

PCG Uniform Pseudo-random Number Generator. More...

Public Member Functions

 PCG (ulong initState=42, ulong initSeq=54)
 PCG constructor. More...
 
uint Random ()
 Return a new random number and advance PCG's internal state. More...
 
float RandomFloat ()
 Return a new random number uniformly distributed over [0, 1]. More...
 

Public Attributes

ulong State
 
ulong Inc
 

Detailed Description

PCG Uniform Pseudo-random Number Generator.

Constructor & Destructor Documentation

◆ PCG()

PGENLib.PCG.PCG ( ulong  initState = 42,
ulong  initSeq = 54 
)

PCG constructor.

Parameters
initStateinitial seed
initSeqIdentifier of the sequence produced by the random number generator (positive number, " + "only applicable with –algorithm=pathtracing)

Member Function Documentation

◆ Random()

uint PGENLib.PCG.Random ( )

Return a new random number and advance PCG's internal state.

Returns

◆ RandomFloat()

float PGENLib.PCG.RandomFloat ( )

Return a new random number uniformly distributed over [0, 1].

Returns

The documentation for this class was generated from the following file: