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?
random normal distribution
UPDATE TABLE
SET COLUMN = CAST(SQRT(-2*LOG(RAND()))*SIN(2*PI()*RAND(CHECKSUM(NEWID())))as decimal(5,3))
from TABLE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With