NumCpp  2.7.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 "NumCpp/Core/Types.hpp"
31 
32 #include <random>
33 
34 namespace nc
35 {
36  namespace random
37  {
39  static std::mt19937_64 generator_;
40 
41  //============================================================================
42  // Method Description:
49  inline void seed(uint32 inSeed)
50  {
51  generator_.seed(inSeed);
52  }
53  } // namespace random
54 } // namespace nc
void seed(uint32 inSeed)
Definition: generator.hpp:49
static std::mt19937_64 generator_
generator function
Definition: generator.hpp:39
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40