Mir Random [WIP]

Somebody via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 23 23:37:36 PST 2016


> I have to agree that creating a different API that uses opCall 
> or whatever instead of a the range API is a bad idea, 
> particularly when a simple helper function would make it 
> possible to use a random number generator in a fashion more 
> like rand() for the cases where that's preferable, and for a 
> lot of cases, having the range API is _extremely_ useful.
>
> - Jonathan M Davis

Would, assuming the OpCall() interface, generate!(() => rng()) 
make an input range out of it easily? Or am I missing something?



More information about the Digitalmars-d mailing list