|
lipsum-cpp 0.5.4
A basic library written in C++ for generating placeholder Lorem Ipsum text.
|
Store data for inputting into functions. More...
#include <argvec2.hpp>
Public Member Functions | |
| ArgVec2 (int min, int max) | |
| Constructor for ArgVec2. | |
| int | roll (std::mt19937 &gen, bool lazy=false) const |
| Return a number between min and max. | |
Public Attributes | |
| int | min |
| The minimum value. | |
| int | max |
| The maximum value. | |
Store data for inputting into functions.
This struct stores values min and max, which are intended to be inputted into functions as arguments.
| lipsum::ArgVec2::ArgVec2 | ( | int | min, |
| int | max ) |
|
nodiscard |
Return a number between min and max.
This function returns a random value between min and max. Formerly known as lpsm::Generator::Roll().
| gen | The generator to use. |
| lazy | Whether to use "lazy" mode, i.e. using an average. |