Ankh Morpork's Finest Coder
Monday, January 24, 2005

The Random Infinity
Can you try and spot the bug and the possible error that can occur with the following lines of code? HINT: The bug will throw an exception!

Decimal randomDoubleAsDecimal()
{ Random rand = new Random();
return Decimal.Parse(rand.NextDouble().ToString());


Post a Comment