Actually, this is .NET 101. Probably everyone who has worked with the
Random class already knows this. However, last week we encountered a Heisenbug in one of our feature, and this blog post is just a reminder of how the Random class works.
Our project is delivering calculation heavy software used by engineers. We are performing complex numeric operations, and it’s utterly crucial that our software is calculating correctly. Recently, one in our team just encountered that
Math.Round() is behaving differently than what we have expected.