srand time error uint/long

Paul Backus snarwin at gmail.com
Mon Apr 29 15:24:41 UTC 2019


On Monday, 29 April 2019 at 14:36:49 UTC, number wrote:
> And how to use the d libs instead? is this the way to go?
>
> ```
> Random rnd = Random(Clock.currTime().second);
> uniform01(rnd); //(or whatever)
> ```

https://dlang.org/phobos/std_random.html#unpredictableSeed


More information about the Digitalmars-d-learn mailing list