diff --git a/libvmake/examples/random_even.cpp b/libvmake/examples/random_even.cpp new file mode 100644 index 0000000..7f4dd15 --- /dev/null +++ b/libvmake/examples/random_even.cpp @@ -0,0 +1,10 @@ +#include "../vmake.hpp" +#include +using namespace std; + +int main() { + vmake::outputln_n(cout, 1000, " ", vmake::filter( + vmake::rng::uniform_ints(vmake::require_unique, 1, 10000), + [](auto x) { return x % 2 == 0; })); +} +