www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Mir Random announce - Professional RNGs

reply Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
https://github.com/libmir/mir-random
http://docs.random.dlang.io/latest/index.html
Nov 25 2016
next sibling parent Rory McGuire via Digitalmars-d-announce writes:
On Sat, Nov 26, 2016 at 1:14 AM, Ilya Yaroshenko via
Digitalmars-d-announce <digitalmars-d-announce 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;
Nov 25 2016
prev sibling next sibling parent reply Adrian Matoga <dlang.spam matoga.info> writes:
On Friday, 25 November 2016 at 23:14:06 UTC, Ilya Yaroshenko 
wrote:
 https://github.com/libmir/mir-random
 http://docs.random.dlang.io/latest/index.html
Cool! I'd only suggest renaming "algorithm" to "range", to better reflect what's inside the module.
Nov 26 2016
parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Saturday, 26 November 2016 at 11:21:54 UTC, Adrian Matoga 
wrote:
 On Friday, 25 November 2016 at 23:14:06 UTC, Ilya Yaroshenko 
 wrote:
 https://github.com/libmir/mir-random
 http://docs.random.dlang.io/latest/index.html
Cool! I'd only suggest renaming "algorithm" to "range", to better reflect what's inside the module.
They are actually algorithms, in exactly the same sense as `std.algorithm`; it's just that they include random decisions in the generation of their elements.
Nov 26 2016
prev sibling parent Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
On Friday, 25 November 2016 at 23:14:06 UTC, Ilya Yaroshenko 
wrote:
 https://github.com/libmir/mir-random
 http://docs.random.dlang.io/latest/index.html
The first Mir Random benchmark! https://forum.dlang.org/post/jpoicjgffljvqkoxgrnx forum.dlang.org
Nov 26 2016