[#absl-zipf_distribution-2constructor-02] = xref:absl.adoc[absl]::xref:absl/zipf_distribution.adoc[zipf_distribution]::zipf_distribution :relfileprefix: ../../ :mrdocs: Constructs a distribution from the given parameters. == Synopsis Declared in `<absl/random/zipf_distribution.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit zipf_distribution( xref:absl/zipf_distribution/result_type.adoc[result_type] k, double q = 2.0, double v = 1.0); ---- == Parameters [cols="1,4"] |=== | Name| Description | *k* | The largest value the distribution can produce. | *q* | The exponent parameter of the distribution. | *v* | The offset parameter of the distribution. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#