3#include <Common/primitive_type.h>
23 template<std::
size_t N,
typename T = real>
29 static std::size_t
index(std::size_t lowerBound, std::size_t upperBound);
Get random values from default RNG.
Definition Random.h:14
static std::array< T, N > sampleND()
Similar to sample(), except the sample is N-dimensional.
Definition Random.ipp:11
static std::size_t index(std::size_t lowerBound, std::size_t upperBound)
Get a uniform random integer value in [lowerBound, upperBound).
Definition Random.ipp:23
static real sample()
Get a uniform random value in [0, 1].
Definition Random.cpp:44
static uint32 bits32()
Definition Random.cpp:49
static uint64 bits64()
Definition Random.cpp:54
Math functions and utilities.
Definition TransformInfo.h:10