Subject: Re: [boost] [random] new threefry random engine
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-05-02 11:57:02


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