[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/numeric/random/seed_seq [Back]  [Original]

std::seed_seq cppreference.com
cppreference.com
Espaces de noms
Variantes

std::seed_seq

De cppreference.com

<metanoindex/>

 
 
Bibliothque Numerics
Fonctions mathmatiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numriques
La gnration de nombres pseudo-alatoires
Moment de la compilation arithmtique rationnelle (C++11)
Gnriques des oprations numriques
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota (C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
La gnration de nombres pseudo-alatoires
Les moteurs et les adaptateurs de moteur
Original:
Engines and engine adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
linear_congruential_engine (C++11)
mersenne_twister_engine (C++11)
subtract_with_carry_engine (C++11)
discard_block_engine (C++11)
independent_bits_engine (C++11)
shuffle_order_engine (C++11)
Gnrateurs
Original:
Generators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
random_device (C++11)
Les distributions
Original:
Distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Distributions uniformes
Original:
Uniform distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uniform_int_distribution (C++11)
uniform_real_distribution (C++11)
generate_canonical (C++11)
Distributions de Bernoulli
Original:
Bernoulli distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bernoulli_distribution (C++11)
binomial_distribution (C++11)
negative_binomial_distribution (C++11)
geometric_distribution (C++11)
Distributions de Poisson
Original:
Poisson distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
poisson_distribution (C++11)
exponential_distribution (C++11)
gamma_distribution (C++11)
weibull_distribution (C++11)
extreme_value_distribution (C++11)
Les distributions normales
Original:
Normal distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
normal_distribution (C++11)
lognormal_distribution (C++11)
chi_squared_distribution (C++11)
cauchy_distribution (C++11)
fisher_f_distribution (C++11)
student_t_distribution (C++11)
Distributions d'chantillonnage
Original:
Sampling distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
discrete_distribution (C++11)
piecewise_constant_distribution (C++11)
piecewise_linear_distribution (C++11)
Squences de semences
Original:
Seed Sequences
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
seed_seq (C++11)
Bibliothque C
Original:
C library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rand
srand
RAND_MAX
 
std::seed_seq
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
seed_seq::seed_seq
seed_seq::generate
seed_seq::size
seed_seq::param
 
<tbody> </tbody>
Dclar dans l'en-tte <random>
class seed_seq;
(depuis C++11)
std::seed_seq consomme une squence de valeurs entires de donnes et produit un nombre requis de i des entiers non signs, 0 i < 232
, sur la base des donnes consommes. Les valeurs produites sont rparties sur toute la plage de 32-bit, mme si les valeurs sont proches consommes .
Original:
std::seed_seq consumes a sequence of integer-valued data and produces a requested number of unsigned integer values i, 0 i < 232
, based on the consumed data. The produced values are distributed over the entire 32-bit range even if the consumed values are close.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Il fournit un moyen pour ensemencer un grand nombre de moteurs de nombres alatoires ou un gnrateur de semences qui ncessite beaucoup d'entropie, tant donn une petite graine ou une squence de graines mal rparties initiale .
Original:
It provides a way to seed a large number of random number engines or to seed a generator that requires a lot of entropy, given a small seed or a poorly distributed initial seed sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::seed_seq rpond aux exigences de SeedSequence .
Original:
std::seed_seq meets the requirements of SeedSequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Types de membres

Type du membre Dfinition
result_type std::uint_least32_t

Fonctions membres

constructions et les graines de l'objet std :: seed_seq
Original:
constructs and seeds the std::seed_seq object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique)
operator=
(
supprime
Original:
deleted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
)
pas de copier-cessible
Original:
not copy-assignable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique)
calcule les prjugs limins, en rpartissant les valeurs 32 bits
Original:
calculates the bias-eliminated, evenly distributed 32-bit values
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique)
obtient le nombre de valeurs 32 bits stockes dans std :: seed_seq
Original:
obtains the number of 32-bit values stored in std::seed_seq
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique)
obtient les valeurs 32-bits stocks dans std :: seed_seq
Original:
obtains the 32-bit values stored in std::seed_seq
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique)

Exemple

#include <random>
#include <iostream>

int main()
{
    std::seed_seq seq({1,2,3,4,5});
    std::vector<std::uint32_t> seeds(10);
    seq.generate(seeds.begin(), seeds.end());
    for(std::uint32_t n : seeds)
        std::cout << n << '\n';
}

Rsultat :

4204997637
4246533866
1856049002
1129615051
690460811
1075771511
46783058
3904109078
1534123438
1495905678

Web Proxy Viewer  |  New URL  |  Original Page