HighMap library (C++)
Loading...
Searching...
No Matches
random.hpp File Reference

Go to the source code of this file.

Classes

class  hmap::PdfSampler
 Samples indices from a discrete probability distribution. More...
 

Namespaces

namespace  hmap
 

Functions

float hmap::fast_hash32_to_unit_float (unsigned int seed, size_t k)
 Generates a fast deterministic uniform float in [0,1) using a 32-bit hash.
 
uint64_t hmap::splitmix64 (uint64_t x)
 Computes a deterministic 64-bit hash using the SplitMix64 algorithm.
 
float hmap::splitmix64_to_unit_float (unsigned int seed, size_t k)
 Generates a deterministic uniform float in [0,1) from a seed and sample index.
 
float hmap::uniform01 (uint64_t h)
 Converts a 64-bit hash value into a deterministic uniform float in [0, 1).