scicpp::random::randn

Defined in header <scicpp/core.hpp>

Return random samples from a normal distribution centered in zero with standard deviation 1.0.


template<typename T, std::size_t N>
std::array<T, N> randn()

Generate a std::array of normaly distributed random numbers.


template<typename T>
T randn()

Generate a single random number normaly distributed.


template<typename T>
std::vector<T> randn(std::size_t N)

Generate a std::vector of normaly distributed random numbers.


See also
Scipy documentation