Implemented the SHOW command and massaged the SET command to fit
[pspp-builds.git] / src / random.h
index b76f2e4590985935114425e0feb3ec1b56524e65..7ab723773d83a48e485425ec672d014a8ea40bda 100644 (file)
 #if !random_h
 #define random_h 1
 
-void setup_randomize (void);
-double rand_uniform (double x);
-double rand_normal (double x);
-int rand_simple (int x);
+#include <stddef.h>
+
+struct rng *rng_create (void);
+void rng_destroy (struct rng *);
+void rng_seed (struct rng *, const void *, size_t);
+void rng_get_bytes (struct rng *, void *, size_t);
+int rng_get_int (struct rng *);
+unsigned rng_get_unsigned (struct rng *);
+double rng_get_double (struct rng *);
+double rng_get_double_normal (struct rng *);
+
+struct rng *pspp_rng (void);
+
+/* Return a `random' seed by using the real time clock */
+unsigned long random_seed(void);
+
 
 #endif /* random.h */