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 literally unsigned int, no cap πŸ’–

πŸ’… Public Member Functions πŸ’…

  • random_device (const random_device &)=delete β€” copy situation? deleted, bestie πŸ’€
  • random_device (const std::string &__token) β€” constructor with a const std::string &__token token, slay ✨
  • double entropy () const noexcept β€” returns a double, and it’s const noexcept 🫢
  • result_type operator() () β€” call operator with no args, returns result_type ⭐
  • void operator= (const random_device &)=delete β€” assignment? also deleted, not happening πŸ™ˆ

πŸ‘‘ Static Public Member Functions πŸ‘‘

  • static constexpr result_type max () β€” static, constexpr, returns result_type πŸ”₯
  • static constexpr result_type min () β€” same static constexpr energy, returns result_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