Mir Random announce - Professional RNGs

Rory McGuire via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Nov 25 21:09:41 PST 2016


On Sat, Nov 26, 2016 at 1:14 AM, Ilya Yaroshenko via
Digitalmars-d-announce <digitalmars-d-announce at puremagic.com> wrote:
>
> https://github.com/libmir/mir-random
> http://docs.random.dlang.io/latest/index.html


Like the betterC use case. Nice API.

first example from the docs:

import mir.random.engine.xorshift;
auto gen = Xorshift(1);
auto s = gen.rand!short;
auto n = gen.rand!ulong;


More information about the Digitalmars-d-announce mailing list