From 0d9f68198e7737381b9c1a701c211f05b07403f9 Mon Sep 17 00:00:00 2001 From: Kevin Keogh Date: Sun, 2 Apr 2017 21:16:42 -0400 Subject: [PATCH] attribution for gaussian random number algorithm --- src/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.c b/src/utils.c index faa709b..aa188c6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -27,6 +27,7 @@ double normalcdf(double z) double gaussrand() { + /* Marsaglia and Bray, ``A Convenient Method for Generating Normal Variables'' */ static double V1, V2, S; static int phase = 0; double X;