add example random_even.cpp
This commit is contained in:
parent
753b474376
commit
3deeedc7aa
10
libvmake/examples/random_even.cpp
Normal file
10
libvmake/examples/random_even.cpp
Normal 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; }));
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user