std::uniform_int_distribution::operator()
Da cppreference.com
< cpp | numeric | random | uniform int distribution
![]() |
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. |
template< class Generator > result_type operator()( Generator& g ); |
(1) | (desde C++11) |
template< class Generator > result_type operator()( Generator& g, const param_type& params ); |
(2) | (desde C++11) |
Gera números aleatórios que são distribu��das de acordo com a função de probabilidade associado. A entropia é adquirido chamando g.operator().
Original:
Generates random numbers that are distributed according to the associated probability function. The entropy is acquired by calling g.operator().
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.
A primeira versão utiliza o conjunto de parâmetros associados, a segunda versão utiliza
params
. O conjunto de parâmetros associados não é modificada.Original:
The first version uses the associated parameter set, the second version uses
params
. The associated parameter set is not modified.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.
[editar] Parâmetros
g | - | um objeto gerador aleatório uniforme número
Original: an uniform random number generator object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
params | - | parâmetro de distribuição definido para utilizar em vez do associado
Original: distribution parameter set to use instead of the associated one The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
O número aleatório gerado.
Original:
The generated random number.
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.
[editar] Complexidade
Número constante amortizado de invocações de g.operator().
Original:
Amortized constant number of invocations of g.operator().
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.