2 May
2014
2 May
'14
3:57 p.m.
AMDG On 05/02/2014 05:39 AM, John Salmon wrote:
Yes. But with C++11 initializer lists, random_value is a one-liner:
unsigned random_value(unsigned i){ return Threefry<2, unsigned>()({i})[0]; }
Sure, that works, as long as you don't mind throwing away the rest of the outputs. In Christ, Steven Watanabe