On Wednesday, 20 January 2016 at 23:21:04 UTC, CTRNG wrote:
I managed to create a compile-time random number generator.

Proof of concept, with some explanatory comments: http://dpaste.dzfl.pl/668646ce6d71

Just thought this might be of interest to some of you here.

That's nearly as fun as using the bsr and bsf functions in core.bitop to implement a pure random number generator.

https://issues.dlang.org/show_bug.cgi?id=14380

Reply via email to