date and time created 80/10/30 00:34:32 by mckusick
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 30 Oct 1980 16:34:32 +0000 (08:34 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 30 Oct 1980 16:34:32 +0000 (08:34 -0800)
SCCS-vsn: usr.bin/pascal/libpc/RANDOM.c 1.1

usr/src/usr.bin/pascal/libpc/RANDOM.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/pascal/libpc/RANDOM.c b/usr/src/usr.bin/pascal/libpc/RANDOM.c
new file mode 100644 (file)
index 0000000..834fad6
--- /dev/null
@@ -0,0 +1,12 @@
+/* Copyright (c) 1979 Regents of the University of California */
+
+static char sccsid[] = "@(#)RANDOM.c 1.1 %G%";
+
+double
+RANDOM()
+{
+       /*
+        * div by maxint to get 0..1
+        */
+       return (rand() / 2.147483647e+09);
+}