std::uniform_int_distribution
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <random>
|
||
template< class IntType = int > class uniform_int_distribution; |
(desde C++11) | |
Produz aleatória i valores inteiros, distribuídos uniformemente no intervalo
[a, b]
fechado, isto é, distribuídas de acordo com a função de probabilidade discreta Original:
Produces random integer values i, uniformly distributed on the closed interval
[a, b]
, that is, distributed according to the discrete probability function The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- P(i|a,b) =
.1 b − a + 1
[editar] Tipos de membro
Tipo de membro
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
result_type
|
IntType |
param_type
|
o tipo do conjunto de parâmetros, não especificado
Original: the type of the parameter set, unspecified The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Funções de membro
constrói nova distribuição Original: constructs new distribution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
redefine o estado interno da distribuição Original: resets the internal state of the distribution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
Original: Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
gera o próximo número aleatório na distribuição Original: generates the next random number in the distribution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
Original: Characteristics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click |