Guassian (normal distribution) random numbers - by Drew Noakes

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 634346 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 1/2/2011 9:51:01 PM
Access Restriction Public


The current System.Random class only returns linearly distributed random numbers.  There are several mathematical problems that require Gaussian distributions of random numbers, and a there does not appear to be support for this in the .NET BCL.

I suggest adding System.Random.NextGaussian():double to the BCL.  Other framework libraries have such a feature, including Python and Java:

The correct implementation of such a function is non-trivial, though it's behaviour is easily described.  
Sign in to post a comment.
Posted by Ibasa on 1/9/2011 at 3:44 PM
I think this better suits a new class than another method.
This also means Next() would use a Gaussian distribution as well.
Posted by Microsoft on 1/2/2011 at 10:22 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(