[#absl-log_uniform_int_distribution] = xref:absl.adoc[absl]::log_uniform_int_distribution :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:absl/log_uniform_int_distribution/param_type.adoc[`param_type`] | The parameter set of the distribution. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:absl/log_uniform_int_distribution/result_type.adoc[`result_type`] | The type of the values produced by the distribution. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/log_uniform_int_distribution/2constructor-0f4.adoc[`log_uniform_int_distribution`] [.small]#[constructor]# | Constructors | xref:absl/log_uniform_int_distribution/base.adoc[`base`] | Returns the base of the logarithm. | xref:absl/log_uniform_int_distribution/max.adoc[`max`] | Returns the largest value the distribution can produce. | xref:absl/log_uniform_int_distribution/min.adoc[`min`] | Returns the smallest value the distribution can produce. | xref:absl/log_uniform_int_distribution/operator_call-00.adoc[`operator()`] | Function call operators | xref:absl/log_uniform_int_distribution/param-0c.adoc[`param`] | `param` overloads | xref:absl/log_uniform_int_distribution/reset.adoc[`reset`] | Resets the internal state of the distribution. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:absl/operator_not_eq-072.adoc[absl::operator!=]` | Compares two distributions for inequality. | `xref:absl/operator_eq-09.adoc[absl::operator==]` | Compares two distributions for equality. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#