Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov authored Jul 21, 2018
1 parent 33ed434 commit dfdb2da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,19 @@ int main(int argc, char* argv[])
cout << rnd.next("[a-zA-Z0-9]{1,1000}") << endl; /* Random word of length [1,1000]. */
}
```

This generator outputs random permutation, the size equals to the first command line argument.

```c++
#include "testlib.h"

using namespace std;

int main(int argc, char* argv[]) {
registerGen(argc, argv, 1);

int n = atoi(argv[1]);
println(n);
println(rnd.perm(n, 1));
}
```

0 comments on commit dfdb2da

Please sign in to comment.