summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/rand/dranda.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliaryFunctions/rand/dranda.c')
-rw-r--r--src/auxiliaryFunctions/rand/dranda.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/auxiliaryFunctions/rand/dranda.c b/src/auxiliaryFunctions/rand/dranda.c
index d27117ff..d6be991b 100644
--- a/src/auxiliaryFunctions/rand/dranda.c
+++ b/src/auxiliaryFunctions/rand/dranda.c
@@ -1 +1,20 @@
-/* FIXME : Implementation */
+/*
+** -*- C -*-
+**
+** dranda.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Fri Sep 7 15:55:47 2007 bruno
+** Last update Fri Sep 7 15:59:21 2007 bruno
+**
+** Copyright INRIA 2007
+*/
+
+#include "rand.h"
+
+void dranda(double *out, int size) {
+ int i = 0;
+ for (i = 0 ; i < size ; ++i) {
+ out[i] = drands();
+ }
+}