Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::random_device::operator()

      From cppreference.com
      <cpp‎ |numeric‎ |random‎ |random device
       
       
       
      Pseudo-random number generation
       
       
      result_type operator()();
      (since C++11)

      Generates a non-deterministic uniformly-distributed random value.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      A random number uniformly distributed in [min(),max()].

      [edit]Exceptions

      Throws an implementation-defined exception derived fromstd::exception if a random number could not be generated.

      [edit]See also

      [static]
      gets the smallest possible value in the output range
      (public static member function)[edit]
      [static]
      gets the largest possible value in the output range
      (public static member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/numeric/random/random_device/operator()&oldid=132178"

      [8]ページ先頭

      ©2009-2025 Movatter.jp