Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Apr 29, 2017
1 parent 3fa85d4 commit a0e4738
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
@@ -1,26 +1,25 @@
# tiny_rand

A small header only library to randomly generate data.
A small header-only library to randomly generate data.

Useful to quickly generate test samples without requiring a big library as dependency.

## Features

A small API that allows to generate any kind of STL data structures:

* Primitives: int, double, strings
* Containers: vector, list, maps, sets...
* Product types: tuples, and custom struct or classes
* Primitives: int, double, strings, ...
* Containers: vector, list, maps, sets, ...
* Product types: tuples, and custom struct or classes.
* Sum types: variants, optionals, ...

It does so by allowing to combine generator together to produce any kind of data.

You can find a blog post introducing the rationale and the design further here:
https://deque.blog/2017/04/20/building-on-the-stl-random-header/
[You can find here a blog post introducing the rationale and the design further.](https://deque.blog/2017/04/20/building-on-the-stl-random-header/)

## Examples

Generating a custom data structure `rgb_color` in a few lines of code. Print the result.
Generating a custom data structure `rgb_color` in a few lines of code and printing the result:

struct rgb_color
{
Expand Down

0 comments on commit a0e4738

Please sign in to comment.