GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::independent_bits_engine(3) C++ Standard Libary std::independent_bits_engine(3)

std::independent_bits_engine - std::independent_bits_engine


Defined in header <random>
template<


class Engine,
std::size_t W, (since C++11)
class UIntType


> class independent_bits_engine;


independent_bits_engine is a random number engine adaptor that produces random
numbers with different number of bits than that of the wrapped engine.


Engine - the type of the wrapped engine
W - the number of bits the generated numbers should have
the type of the generated random numbers. The effect is undefined
UIntType - unless the parameter is cv-unqualified and is one of unsigned short,
unsigned int, unsigned long, or unsigned long long.


-
Engine must meet the requirements of RandomNumberEngine.
-
W must be greater than zero, and no greater than
std::numeric_limits<UIntType>::digits.


Member type Definition
result_type UIntType


constructor constructs the engine adaptor
(C++11) (public member function)
seed sets the state of the underlying engine
(C++11) (public member function)
base returns the underlying engine
(C++11) (public member function)


operator() advances the state of the underlying engine and returns the
(C++11) generated value
(public member function)
discard advances the adaptor's state by a specified amount
(C++11) (public member function)


min gets the smallest possible value in the output range (always zero).
[static] (C++11) (public static member function)
max gets the largest possible value in the output range (always 2w
[static] (C++11) -1).
(public static member function)


operator== compares the internal states of the adaptors and
operator!= underlying engines
(C++11) (function)
(C++11)(removed in C++20)
operator<< performs stream input and output on pseudo-random number
operator>> engine adaptor
(C++11) (function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.