![]() |
PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
|
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 |
PCG Uniform Pseudo-random Number Generator.
PGENLib.PCG.PCG | ( | ulong | initState = 42 , |
ulong | initSeq = 54 |
||
) |
PCG constructor.
initState | initial seed |
initSeq | Identifier of the sequence produced by the random number generator (positive number, " + "only applicable with –algorithm=pathtracing) |
uint PGENLib.PCG.Random | ( | ) |
Return a new random number and advance PCG's internal state.
float PGENLib.PCG.RandomFloat | ( | ) |
Return a new random number uniformly distributed over [0, 1].