NumCpp  2.5.1
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:
50  inline void seed(uint32 inSeed)
51  {
52  generator_.seed(inSeed);
53  }
54  } // namespace random
55 } // namespace nc
void seed(uint32 inSeed)
Definition: generator.hpp:50
static std::mt19937_64 generator_
generator function
Definition: generator.hpp:39
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40