6#ifndef CHEYBYSHEV_GENERATOR_H
7#define CHEYBYSHEV_GENERATOR_H
10#include "../core/common.h"
11#include "../core/random.h"
29 return rnd.uniform(a, b);
41 long long int length = a < b ? (b - a) : (a - b);
44 return a + (rnd.natural() %
uint64_t(length));
double real_t
Floating-point type, used as default for function arguments.
Definition common.h:37
auto discrete1D(long int a, long int b)
Discrete uniform generator over a domain.
Definition generator.h:39
auto uniform1D(real_t a, real_t b)
Uniform generator over a domain.
Definition generator.h:26
General namespace of the framework.
Definition benchmark.h:22
constexpr FloatType get_nan()
Get a quiet NaN of the specified floating point type.
Definition common.h:65
A source of pseudorandom numbers.
Definition random.h:39