gKit2 light
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PCG32 Struct Reference

Public Types

typedef unsigned result_type
 

Public Member Functions

 PCG32 (const uint64_t s, const uint64_t ss=b)
 
void seed (const uint64_t s, const uint64_t ss=b)
 
PCG32index (const uint64_t i)
 
unsigned sample ()
 
unsigned sample_range (const unsigned range)
 
unsigned operator() ()
 

Static Public Member Functions

static constexpr unsigned min ()
 
static constexpr unsigned max ()
 

Public Attributes

uint64_t x
 
uint64_t x0
 
uint64_t key
 

Static Public Attributes

static constexpr uint64_t a = 0x5851f42d4c957f2d
 
static constexpr uint64_t b = 0xda3e39cb94b95bdb
 

Detailed Description

Definition at line 12 of file pcg.h.


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