Weighted random values with maps: https://github.com/effolkronium/random/pull/44
Code deduplication: https://github.com/effolkronium/random/pull/45
Compilation fix with latest libc++ https://github.com/effolkronium/random/commit/98dc7efddd23efc43cc7804a0e48115ef318dbeb