Can anyone explain to me why, when I compile run this code, the two samples
seeded with the unpredictableSeed always come out with the same starting value?
//
import std.random, std.range, std.stdio;
void main()
{
auto s =
On Wednesday, 18 April 2012 at 03:47:31 UTC, Joseph Rushton
Wakeling wrote:
Can anyone explain to me why, when I compile run this code,
the two samples seeded with the unpredictableSeed always come
out with the same starting value?
On Wednesday, 18 April 2012 at 03:47:31 UTC, Joseph Rushton
Wakeling wrote:
Can anyone explain to me why, when I compile run this code,
the two samples seeded with the unpredictableSeed always come
out with the same starting value?
On 18/04/12 06:43, jerro wrote:
According to the comment the call to prime() is necessary
so that the result doesn't always start with the same element.
But prime() uses the gen member which is only assigned after the
constructor completes. So at the time when prime() is called the
gen member is
On Wednesday, 18 April 2012 at 05:05:20 UTC, Joseph Rushton
Wakeling wrote:
On 18/04/12 06:43, jerro wrote:
According to the comment the call to prime() is necessary
so that the result doesn't always start with the same element.
But prime() uses the gen member which is only assigned after
the