Skip to main content
6 events
when toggle format what by license comment
Apr 20, 2021 at 8:22 comment added Flater @RickDavin: Good to know that it becomes less of a problem from 5 onwards, but IMO it's still an unnecessary step to keep recreating it, and at the same time a good lesson on when to use class fields to your advantage.
Apr 19, 2021 at 23:14 comment added radarbob up-voting standouts: Creating a Die class, coupled with the collective reasoning on dice-rolling logic. @Dasein, use this as the foundation for object oriented dice (the plural) and all the goodness that implies,
Apr 19, 2021 at 16:26 comment added Rick Davin I addressed the new Random() in my answer. .NET 5 treats new Random() differently (or rather, correctly) than .NET Framework. As per help: In .NET Framework, the default seed value is time-dependent. In .NET Core, the default seed value is produced by the thread-static, pseudo-random number generator. Link: docs.microsoft.com/en-us/dotnet/api/system.random?view=net-5.0
Apr 19, 2021 at 16:03 history edited Flater CC BY-SA 4.0
added 9 characters in body
Apr 19, 2021 at 14:40 history edited Flater CC BY-SA 4.0
added 547 characters in body
Apr 19, 2021 at 14:34 history answered Flater CC BY-SA 4.0