I'm trying to seed some data, is there anyway to generate numbers in SQL Server that follow a normal distribution curve?
Like: I will specify the mean, the standard deviation and the count and I get a list of numbers back?
I'm trying to seed some data, is there anyway to generate numbers in SQL Server that follow a normal distribution curve?
Like: I will specify the mean, the standard deviation and the count and I get a list of numbers back?
quoting from http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=135026 you might try with
You can obviously offset the results to change the mean and wrap this in a function to iterate as needed to return the desired number of sample points. Let me know if you need help for this.
random normal distribution
For instance (stupid SO body parser): http://www.sqlservercentral.com/articles/SQL+Uniform+Random+Numbers/91103