Random_Xorshift.hpp

A FAST pseudo-random-number generator that has a short (2^64) period. 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_XORSHIFT_HPP_GUARD
struct Random_Xorshift
#include <Random_Xorshift.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

uint64_t state