std::uniform_int_distribution::operator()
Da cppreference.com.
< cpp | numeric | random | uniform int distribution
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
template< class Generator > result_type operator()( Generator& g ); |
(1) | (dal C++11) |
template< class Generator > result_type operator()( Generator& g, const param_type& params ); |
(2) | (dal C++11) |
Genera numeri casuali che vengono distribuiti secondo la funzione di probabilità associata. L'entropia è acquisita chiamando 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.
La prima versione utilizza il set di parametri associati, la seconda versione utilizza
params
. Il set di parametri associati non viene modificato.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.
[modifica] Parametri
g | - | un uniforme di numeri casuali oggetto generatore
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 | - | parametro di distribuzione predisposto da utilizzare al posto degli associati uno
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. |
[modifica] Valore di ritorno
Il numero casuale generato.
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.
[modifica] Complessità
Ammortizzato numero costante di invocazioni di 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.