MCPcopy Create free account
hub / github.com/USCiLab/cereal / random_value

Function random_value

sandbox/performance.cpp:241–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240template<class T>
241typename std::enable_if<std::is_floating_point<T>::value, T>::type
242random_value(std::mt19937 & gen)
243{ return std::uniform_real_distribution<T>(-10000.0, 10000.0)(gen); }
244
245template<class T>
246typename std::enable_if<std::is_integral<T>::value && sizeof(T) != sizeof(char), T>::type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected