lipsum-cpp 0.5.4
A basic library written in C++ for generating placeholder Lorem Ipsum text.
Loading...
Searching...
No Matches
argvec2.hpp
Go to the documentation of this file.
1
12
13#pragma once
14
15#include "core.hpp"
16#include "stdincludes.hpp"
17
18namespace lipsum
19{
29 {
38 ArgVec2(int min, int max);
39
53 [[nodiscard]] int roll(std::mt19937& gen, bool lazy = false) const;
54
55 int min;
56 int max;
57 };
58} // namespace lipsum
Core macros for lipsum-cpp.
#define LIPSUM_API
Macro for shared libraries.
Definition core.hpp:71
This is the main namespace of lipsum-cpp.
Standard library includes of lipsum-cpp.
int max
The maximum value.
Definition argvec2.hpp:56
int min
The minimum value.
Definition argvec2.hpp:55
ArgVec2(int min, int max)
Constructor for ArgVec2.
Definition argvec2.inl:20
int roll(std::mt19937 &gen, bool lazy=false) const
Return a number between min and max.
Definition argvec2.inl:39