std::random_device(3cxx)
okay so welcome to the std::random_device page from the 3cxx manual π
β¨ β yes, the manual name is 3cxx, and this page is all about the random-device cutie.
πΈ NAME πΈ
std::random_device
β¨ SYNOPSIS β¨
To get access, include this, bestie:
#include <random>
π Public Types π
typedef unsigned int result_typeβ the public type name, and it is literallyunsigned int, no cap π
π Public Member Functions π
random_device (const random_device &)=deleteβ copy situation? deleted, bestie πrandom_device (const std::string &__token)β constructor with aconst std::string &__tokentoken, slay β¨double entropy () const noexceptβ returns adouble, and itβsconst noexceptπ«Άresult_type operator() ()β call operator with no args, returnsresult_typeβvoid operator= (const random_device &)=deleteβ assignment? also deleted, not happening π
π Static Public Member Functions π
static constexpr result_type max ()β static, constexpr, returnsresult_typeπ₯static constexpr result_type min ()β same static constexpr energy, returnsresult_typeπ
π¦ Detailed Description π¦
okay so the whole vibe is: itβs a standard interface to a platform-specific non-deterministic random number generator β if any are available, bestie. That βif anyβ is doing real work, so donβt forget it.
Since: C++11 β iconic behavior since forever ago (well, since C++11) π
π Member Typedef Documentation π
typedef unsigned int std::random_device::result_typeβ this is the type of the generated random value, periodt π
π Author π
not a human bestie β this page was generated automatically by Doxygen for libstdc++ from the source code π
cute sign-off: source/version is libstdc++, manual tag 3cxx; the date? not shown on this page, so no date to spill, bestie π«Άπ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms