![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
Defined in ranges.hpp
.
This struct can be used to select a single random item from an input range. This can be extremely inefficient if the input range is large, because every item in the range prior to the randomly chosen one must be iterated through when get
is called.
Public Member Functions | |
Random ()=default | |
Default constructor. | |
Random (Random &&)=default | |
Default move constructor. | |
Random (Random const &)=default | |
Default copy constructor. | |
Random & | operator= (Random &&)=default |
Default move assignment operator. | |
Random & | operator= (Random const &)=default |
Default copy assignment operator. | |
|
default |
Default constructor.