NumCpp  2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
generator.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <random>
31
32namespace nc::random
33{
35 inline 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
std::mt19937_64 generator_
generator function
Definition generator.hpp:35
void seed(int inSeed)
Definition generator.hpp:46
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59