cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
random.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
4#define pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
5
7
8namespace pRC
9{
10 template<class T, IsRandomEngine URNG, IsRandomDistribution D>
11 requires IsDefined<Random<T, URNG, D>> &&
12 IsConstructible<Random<T, URNG, D>, URNG &, D &>
13 static inline constexpr auto random(URNG &rng, D &distribution)
14 {
15 return Random<T, URNG, D>(rng, distribution)();
16 }
17}
18#endif // pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
pRC::Size const D
Definition CalculatePThetaTests.cpp:9
Definition cholesky.hpp:10
static constexpr auto random(URNG &rng, D &distribution)
Definition random.hpp:13
Definition random.hpp:12