srand time error uint/long

number putimalitze at gmx.de
Mon Apr 29 16:03:12 UTC 2019


On Monday, 29 April 2019 at 14:39:29 UTC, rikki cattermole wrote:
> float f = uniform01();
>
> Its already initialized on module load.
>
> If you do want to custom seed it, you'll probably want to cast 
> the seed to uint instead and have your own instance of the 
> random number generator.

On Monday, 29 April 2019 at 15:24:41 UTC, Paul Backus wrote:
> https://dlang.org/phobos/std_random.html#unpredictableSeed

Thanks!


More information about the Digitalmars-d-learn mailing list