NumCpp  2.11.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
generator.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include <random>
31 
32 namespace nc::random
33 {
35  static std::mt19937_64 generator_;
36 
37  //============================================================================
38  // Method Description:
46  inline void seed(int inSeed)
47  {
48  generator_.seed(inSeed);
49  }
50 } // namespace nc::random
Definition: Random/bernoulli.hpp:41
static std::mt19937_64 generator_
generator function
Definition: generator.hpp:35
void seed(int inSeed)
Definition: generator.hpp:46