Using std.random.uniform as a range

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 7 06:59:05 PDT 2015


What is the best way to create range from uniform() function (in other 
words create a generator based on some function, returning, say, scalar, 
not range)? I did http://dpaste.dzfl.pl/53e3d9255cd7 but I'm not sure 
it's the best way. At least sequence using looks ugly


More information about the Digitalmars-d-learn mailing list