header_utils
Loading...
Searching...
No Matches
Sequences

Functions that return the next or specific value in a random (known) sequence. More...

Classes

struct  ghassanpl::random::philox64_engine
 Another good quality random engine, this time based on the philox64 random function. More...

Functions

constexpr uint64_t ghassanpl::noise::seeded_noise64 (uint64_t position, uint64_t seed)
constexpr uint32_t ghassanpl::noise::seeded_noise (int32_t position, uint32_t seed)
constexpr uint32_t ghassanpl::noise::seeded_noise2d (int32_t indexX, int32_t indexY, uint32_t seed)
constexpr double ghassanpl::noise::seeded_noise_normalized (int32_t index, uint32_t seed)
constexpr double ghassanpl::noise::seeded_noise2d_normalized (int32_t indexX, int32_t indexY, uint32_t seed)
constexpr uint64_t ghassanpl::random::xorshift64 (uint64_t &state) noexcept
constexpr uint64_t ghassanpl::random::numrep_hash (uint64_t index)
constexpr uint64_t ghassanpl::random::philox64 (uint64_t sequence_index, uint32_t sequence_key)

Detailed Description

Functions that return the next or specific value in a random (known) sequence.

Function Documentation

◆ numrep_hash()

uint64_t ghassanpl::random::numrep_hash ( uint64_t index)
inlineconstexpr

Definition at line 89 of file random_seq.h.

◆ philox64()

uint64_t ghassanpl::random::philox64 ( uint64_t sequence_index,
uint32_t sequence_key )
constexpr

Definition at line 121 of file random_seq.h.

◆ seeded_noise()

uint32_t ghassanpl::noise::seeded_noise ( int32_t position,
uint32_t seed )
nodiscardconstexpr

Definition at line 35 of file random_seq.h.

◆ seeded_noise2d()

uint32_t ghassanpl::noise::seeded_noise2d ( int32_t indexX,
int32_t indexY,
uint32_t seed )
nodiscardconstexpr

Definition at line 58 of file random_seq.h.

◆ seeded_noise2d_normalized()

double ghassanpl::noise::seeded_noise2d_normalized ( int32_t indexX,
int32_t indexY,
uint32_t seed )
nodiscardconstexpr

Definition at line 70 of file random_seq.h.

◆ seeded_noise64()

uint64_t ghassanpl::noise::seeded_noise64 ( uint64_t position,
uint64_t seed )
nodiscardconstexpr

Definition at line 18 of file random_seq.h.

◆ seeded_noise_normalized()

double ghassanpl::noise::seeded_noise_normalized ( int32_t index,
uint32_t seed )
nodiscardconstexpr

Definition at line 64 of file random_seq.h.

◆ xorshift64()

uint64_t ghassanpl::random::xorshift64 ( uint64_t & state)
constexprnoexcept

Definition at line 79 of file random_seq.h.