Function gen_random_range¶
function gen_random_range(const random_state &, T, T) base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_range<T, Dims> gen_random_range(const random_state& state, T min, T max) Creates an expression that produces random values in [min, max) using a copied state.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| state | Random generator state to copy into the expression. |
| min | Lower bound of the range (inclusive). |
| max | Upper bound of the range (exclusive). |
| Expression generating random values in [min, max). |
Fully qualified name: kfr::gen_random_range(const random_state &, T, T)
Declared at base/random.hpp:325
Function gen_random_range¶
function gen_random_range(std::reference_wrapper<random_state>, T, T) base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_range<T, Dims, true> gen_random_range(
std::reference_wrapper<random_state> state, T min, T max) Creates an expression that produces random values in [min, max) using a referenced state.
Use std::ref(state) to select this overload.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| state | Reference wrapper to the random generator state. |
| min | Lower bound of the range (inclusive). |
| max | Upper bound of the range (exclusive). |
| Expression generating random values in [min, max). |
Fully qualified name: kfr::gen_random_range(std::reference_wrapper<random_state>, T, T)
Declared at base/random.hpp:343
Function gen_random_range¶
function gen_random_range(T, T) base¶
template <typename T, index_t Dims = 1>
KFR_FUNCTION expression_random_range<T, Dims> gen_random_range(T min, T max) Creates an expression that produces random values in [min, max) seeded from the cycle counter.
| T | Value type of the generated samples. |
| Dims | Number of dimensions of the expression. |
| min | Lower bound of the range (inclusive). |
| max | Upper bound of the range (exclusive). |
| Expression generating random values in [min, max). |
Fully qualified name: kfr::gen_random_range(T, T)
Declared at base/random.hpp:360
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.