---
name: "std::discrete_distribution_param_type"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::discrete_distribution_param_type"
---

# std::discrete\_distribution\_param\_type(3cxx)

## NAME

std::discrete\_distribution\< \_IntType \>::param\_type

## SYNOPSIS

`#include <random>`

### Public Types

**typedef** **discrete\_distribution**\< \_IntType \> **distribution\_type**\

### Public Member Functions

template\<**typename** **\_InputIterator** \> **param\_type** (**\_InputIterator** **\_\_wbegin**, **\_InputIterator** **\_\_wend**)\
 **param\_type** (const **param\_type** &)=**default**\
 **param\_type** (**initializer\_list**\< double \> **\_\_wil**)\
 template\<**typename** \_Func \> **param\_type** (size\_t **\_\_nw**, double **\_\_xmin**, double **\_\_xmax**, \_Func **\_\_fw**)\
 **param\_type** & **operator=** (const **param\_type** &)=**default**\
 **std::vector**\< double \> **probabilities** () const\

### Friends

**class** **discrete\_distribution\< \_IntType \>**\
 bool **operator!=** (const **param\_type** &**\_\_p1**, const **param\_type** &**\_\_p2**)\
 bool **operator==** (const **param\_type** &**\_\_p1**, const **param\_type** &**\_\_p2**)\

## Detailed Description

### template\<typename \_IntType = int\>

struct std::discrete\_distribution\< \_IntType \>::param\_type"Parameter type.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
