initial checkin of random functions
[physik/nlsop.git] / random.h
diff --git a/random.h b/random.h
new file mode 100644 (file)
index 0000000..4fa9aae
--- /dev/null
+++ b/random.h
@@ -0,0 +1,20 @@
+/*
+ * random functions - header
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#include "nlsop.h"
+#include <math.h>
+#include <stdio.h>
+
+/* function prototypes */
+int rand_init(char *rf);
+int rand_close(void);
+int get_rand(u32 max);
+int get_rand_lgp(u32 max,double a,double b);
+
+#define BUFSIZE (16*1048576) /* 64 MByte */
+#define URAND_MAX 0xffffffff
+