Random_Xoshiro256pp.hpp

A high-quality and fast pseudo-random-number generator engine. Status: RELEASE.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2025 Michigan State University MIT Software license; see doc/LICENSE.md

Defines

INCLUDE_EMP_MATH_RANDOM_XOSHIRO256PP_HPP_GUARD
struct Random_Xoshiro256pp
#include <Random_Xoshiro256pp.hpp>

Public Functions

inline std::string GetType() const noexcept
inline uint64_t Get() noexcept
inline void ResetSeed(uint64_t seed) noexcept

Starts a new sequence of pseudo random numbers; seed must be > 0.

Public Members

array<uint64_t, 4> state

Public Static Functions

static inline uint64_t rotl(const uint64_t value, int rot) noexcept