Skip to content

Function randommantissa

function randommantissa(random_state &) base

template <std::same_as<f32> T, size_t N>
KFR_INTRINSIC vec<f32, N> randommantissa(random_state& state)

Generates a vector of f32 values with mantissas in [1.0, 2.0).

The raw bits are masked to keep only the mantissa bits and to force the exponent to that of 1.0, producing values in [1.0, 2.0).

Template parameters
T Must be f32.
N Number of values to generate.
Parameters
state Reference to the random number generator state.
Returns
Vector of N floats in [1.0, 2.0).

Fully qualified name: kfr::randommantissa(random_state &)

Declared at base/random.hpp:63

Function randommantissa

function randommantissa(random_state &) base

template <std::same_as<f64> T, size_t N>
KFR_INTRINSIC vec<f64, N> randommantissa(random_state& state)

Generates a vector of f64 values with mantissas in [1.0, 2.0).

The raw bits are masked to keep only the mantissa bits and to force the exponent to that of 1.0, producing values in [1.0, 2.0).

Template parameters
T Must be f64.
N Number of values to generate.
Parameters
state Reference to the random number generator state.
Returns
Vector of N doubles in [1.0, 2.0).

Fully qualified name: kfr::randommantissa(random_state &)

Declared at base/random.hpp:80

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.