| 55 | |
| 56 | template <typename T, typename... TL> |
| 57 | int32_t staticRandomI32Range(int32_t min, int32_t max, T const& d, TL const&... rest) { |
| 58 | uint64_t denom = (uint64_t)(-1) / ((uint64_t)(max - min) + 1); |
| 59 | return (int32_t)(staticRandomU64(d, rest...) / denom + min); |
| 60 | } |
| 61 | |
| 62 | template <typename T, typename... TL> |
| 63 | uint32_t staticRandomU32Range(uint32_t min, uint32_t max, T const& d, TL const&... rest) { |
no test coverage detected