Mir Random [WIP]
Joseph Rushton Wakeling via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 23 05:26:41 PST 2016
On Wednesday, 23 November 2016 at 13:03:04 UTC, Ilya Yaroshenko
wrote:
> Added RandomRangeAdaptor for URBGs:
> https://github.com/libmir/mir-random/blob/master/source/random/algorithm.d
This has exactly the problem I identified above, though: you're
unnecessarily cacheing the latest variate rather than just using
the RNG state directly. Not the biggest deal in the world, but
avoidable if you allow a separation between updating RNG state
and accessing it.
More information about the Digitalmars-d
mailing list