Back to Documentations

Signature Description Parameters
template<typename T, std::size_t A = 0>
std::vector<T, typename allocator_declare<T, A>::type>
gen_uniform_real_dist(std::size_t n, const RandGenParams<T> &params = { });
It generates n uniform real distribution random numbers.
                  1
    P(i|a,b) = -------
                b − a
        
It returns the vector of results
Optional parameters to set:
max_value, min_value, seed
T: Type can only be float, double, or long double
A: Memory alignment boundary for vectors. Default is system default alignment
n: Number of numerics to generate
params: List of all applicable parameters, see DataFrameTypes.h

C++ DataFrame