MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / staticRandomDoubleRange

Function staticRandomDoubleRange

source/core/StarStaticRandom.hpp:91–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90template <typename T, typename... TL>
91double staticRandomDoubleRange(double min, double max, T const& d, TL const&... rest) {
92 return staticRandomDouble(d, rest...) * (max - min) + min;
93}
94
95template <typename Container, typename T, typename... TL>
96typename Container::value_type& staticRandomFrom(Container& container, T const& d, TL const&... rest) {

Callers

nothing calls this directly

Calls 1

staticRandomDoubleFunction · 0.85

Tested by

no test coverage detected