add example random_even.cpp

This commit is contained in:
方而静 2023-07-23 15:24:35 +08:00
parent 753b474376
commit 3deeedc7aa

View File

@ -0,0 +1,10 @@
#include "../vmake.hpp"
#include <iostream>
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; }));
}