Pseudo-random numbers in [0, n), covering all numbers in n steps?

Craig Dillabaugh via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 26 08:23:42 PST 2016


On Friday, 26 February 2016 at 15:21:08 UTC, Nicholas Wilson 
wrote:
> On Friday, 26 February 2016 at 15:17:16 UTC, Craig Dillabaugh 
> wrote:
>> On Friday, 26 February 2016 at 15:15:11 UTC, Nicholas Wilson 
>> wrote:
>>> On Friday, 26 February 2016 at 14:59:43 UTC, Andrei 
>>> Alexandrescu wrote:
>>>> On 02/25/2016 06:46 PM, Nicholas Wilson wrote:
>>>>> [...]
>>>>
>>>> Thanks, that's indeed closest! A hefty read. Anyone inclined 
>>>> to work on a PCG random implementation? -- Andrei
>>>
>>> Dstep could be used to port the C++ version if needed.
>>
>> I don't think Dstep can handle C++.
>
> Hmm. I thought that was what it did. Maybe I was thinking of 
> another thing or perhaps I should make sure that I am not about 
> to fall asleep before posting.

Dstep can convert C headers to D, but can't handle C++.


More information about the Digitalmars-d mailing list