Returns a random variate R in range [min, max]such that floor(log(R‐min, base)) is uniformly distributed.
Synopsis
Declared in <absl/random/log_uniform_int_distribution.h>
template<typename IntType = int>
class log_uniform_int_distribution;
Description
We ensure uniformity by discretization using the boundary sets [0, 1, base, base * base, ... min(base].
Types
Name |
Description |
The parameter set of the distribution. |
Type Aliases
Name |
Description |
The type of the values produced by the distribution. |
Member Functions
Name |
Description |
|
Constructors |
Returns the base of the logarithm. |
|
Returns the largest value the distribution can produce. |
|
Returns the smallest value the distribution can produce. |
|
Function call operators |
|
|
|
Resets the internal state of the distribution. |
Friends
Name |
Description |
Compares two distributions for inequality. |
|
Compares two distributions for equality. |
Created with MrDocs