Template Function librapid::random(const Complex<T>&, const Complex<T>&, uint64_t)#
Defined in File complex.hpp
Function Documentation#
-
template<typename T>
auto librapid::random(const Complex<T> &min, const Complex<T> &max, uint64_t seed = -1) -> Complex<T># Generate a random complex number between two given complex numbers.
This function generates a random complex number in the range [min, max], where min and max are given as input. The function uses a default seed if none is provided.
- Template Parameters
T – Scalar type of the complex number
- Parameters
min – Minimum complex number
max – Maximum complex number
seed – Seed for the random number generator
- Returns
Random complex number between min and max