cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Public Types | Public Member Functions | List of all members
splitmix64 Struct Reference

Pseudo-RNG generator. More...

Public Types

typedef uint64_t result_type
 the type of the integer generated
 

Public Member Functions

CXXO_CONSTEXPR splitmix64 (uint64_t useed) CXXO_NOEXCEPTNOTHROW
 Sets up a PRNG with a given seed .
 
void seed (uint64_t s) CXXO_NOEXCEPTNOTHROW
 Changes the seed of the current object.
 
result_type operator() () CXXO_NOEXCEPTNOTHROW
 Obtains a pseudo-random number from the generator.
 
void discard (unsigned long long z) CXXO_NOEXCEPTNOTHROW
 Discards z "steps" from the generator.
 

Detailed Description

Pseudo-RNG generator.

See also
http://xoshiro.di.unimi.it/splitmix64.c
https://arvid.io/2018/07/02/better-cxx-prng

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