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.
 
float hmap::splitmix64_to_unit_float (unsigned int seed, size_t k)
 Generates a deterministic uniform float in [0,1) using a SplitMix64-style hash.