std::linear_congruential_engine
Aus 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. |
definiert in Header <random>
|
||
template< class UIntType, |
(seit C++11) | |
A linear_congruential_engine produziert unsigned integer Pseudozufallszahlen. Der Zustand eines LCG ist der Größe 1 und besteht aus einer einzigen Zahl .
Original:
A linear_congruential_engine produces unsigned integer pseudorandom numbers. The state of a LCG is of size 1 and consists of a single integer.
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.
Der Übergang Algorithmus des LCG Funktion ist x
i+1 ← (ax
i+c) mod m .
i+1 ← (ax
i+c) mod m .
Original:
The transition algorithm of the LCG function is x
i+1 ← (ax
i+c) mod m.
i+1 ← (ax
i+c) mod m.
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.
[Bearbeiten] Mitglied Typen
Mitglied Typ
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
|
Das Integral-Typ durch den Motor erzeugt. Die Ergebnisse sind undefiniert, wenn dies nicht ein unsigned integraler Typ .
Original: The integral type generated by the engine. Results are undefined if this is not an unsigned integral type. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Member-Funktionen
Original: Construction and Seeding The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
erzeugt den Generator (öffentliche Elementfunktion) | |
setzt den aktuellen Zustand des Generators (öffentliche Elementfunktion) | |
Original: Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
aktualisiert den Zustand des Generators und gibt den generierten Wert zurück (öffentliche Elementfunktion) | |
Fortschritte Zustand des Motors um einen bestimmten Betrag Original: advances the engine's state by a specified amount The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Characteristics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[statisch] |
gibt den kleinstmöglichen Ergebniswert zurück (public static Elementfunktion) |
[statisch] |
gibt den größtmöglichen Ergebniswert zurück (public static Elementfunktion) |
[Bearbeiten] Non-Member-Funktionen
vergleicht die internen Zustände der zwei Pseudo-Zufallszahlen-Generatoren (Funktion) | |
führt Stream Ein-und Ausgang auf Pseudo-Zufallszahlen-Motor Original: performs stream input and output on pseudo-random number engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
[Bearbeiten] Mitglied widerspricht
constexpr UIntType multiplier [statisch] |
der Multiplikator Begriff (a) . Original: the multiplier term (a). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static Mitglied konstanten) |
constexpr UIntType increment [statisch] |
die Schrittweite Begriff (c) . Original: the increment term (c). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static Mitglied konstanten) |
constexpr UIntType modulus [statisch] |
das Modul Begriff (m) . Original: the modulus term (m). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static Mitglied konstanten) |
constexpr UIntType default_seed [statisch] |
die Standard-Saatgut (1) . Original: the default seed (1). The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static Mitglied konstanten) |