[PATCH] random_normal function - Mailing list pgsql-hackers

From Paul Ramsey
Subject [PATCH] random_normal function
Date
Msg-id CACowWR0DqHAvOKUCNxTrASFkWsDLqKMd6WiXvVvaWg4pV1BMnQ@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] random_normal function  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: [PATCH] random_normal function  (Justin Pryzby <pryzby@telsasoft.com>)
Re: [PATCH] random_normal function  (Mark Dilger <mark.dilger@enterprisedb.com>)
List pgsql-hackers
Just a utility function to generate random numbers from a normal
distribution. I find myself doing this several times a year, and I am
sure I must not be the only one.

random_normal(stddev float8 DEFAULT 1.0, mean float8 DEFAULT 0.0)

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: sendFileWithContent() does not advance the source pointer
Next
From: Andres Freund
Date:
Subject: Re: Error-safe user functions