OWL
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
owl::common::DRand48 Struct Reference

#include <random.h>

Public Member Functions

__both__ void init (int seed=0)
 
__both__ float operator() ()
 

Public Attributes

uint64_t state
 

Detailed Description

literal re-implementation of the stdlib 'drand48()' LCG generator. note this is usually significantly worse than the owl::common::LCG class above

Member Function Documentation

◆ init()

__both__ void owl::common::DRand48::init ( int  seed = 0)
inline

initialize the random number generator with a new seed (usually per pixel)

◆ operator()()

__both__ float owl::common::DRand48::operator() ( )
inline

get the next 'random' number in the sequence


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