]> git.ozlabs.org Git - ppp.git/blobdiff - NeXT/random.h
Update from NeXT-ppp-2.2-0.4.6
[ppp.git] / NeXT / random.h
diff --git a/NeXT/random.h b/NeXT/random.h
new file mode 100644 (file)
index 0000000..787368d
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Because the standard library random number
+ * functions are not availble at the kernel level
+ * I wrote this simple random number generator.
+ *
+ * It uses the multiplicative congruential method.
+ * See pg 263 of Banks and Carson "Discrete-Event
+ * System Simulation".
+ *
+ */
+
+void srand(unsigned i);
+unsigned rand(void);
+float frand(void);