How to generate a random number from system clock as seed

Eric P626 ericp at lariennalibrary.com
Mon Jun 10 14:08:08 UTC 2024


On Sunday, 9 June 2024 at 23:31:47 UTC, drug007 wrote:
> ```d
>     const seed = cast(uint) Clock.currStdTime;
> ```

Casting like this looks nice. It fits my type of thinking.



More information about the Digitalmars-d-learn mailing list