Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::experi...berGenerator(3) C++ Standard Libarystd::experi...berGenerator(3)

NAME
       std::experimental::ranges::UniformRandomNumberGenerator	- std::experi-
       mental::ranges::UniformRandomNumberGenerator

Synopsis
	  Defined in header <experimental/ranges/random>
	  template <class G>

	  concept bool UniformRandomNumberGenerator =
	  Invocable<G&>	&&
	  UnsignedIntegral<std::result_of_t<G&()>> &&	   (ranges TS)
	  requires {
	  { G::min() } -> Same<std::result_of_t<G&()>>&&;
	  { G::max() } -> Same<std::result_of_t<G&()>>&&;

	  };

	  The concept UniformRandomNumberGenerator<G> specifies	that G is  the
       type of a
	  uniform  random  number  generator,  that is,	objects	of type	G is a
       function	object
	  returning unsigned integer values such that each value in the	 range
       of possible
	  results has (ideally)	equal probability of being returned.

	  UniformRandomNumberGenerator<G>  is satisfied	only if, given any ob-
       ject g of type G:

	    * G::min() and G::max() are	prvalue	constant expressions;
	    * G::min() < G::max()
	    * g() is in	the range [G::min(), G::max()]
	    * g() has amortized	constant complexity.

http://cppreference.com		  2022.07.31	 std::experi...berGenerator(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::experimental::ranges::UniformRandomNumberGenerator&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help