BSD 3 development
[unix-history] / usr / src / games / fortune.c
index 0e1669e..cdd3d48 100644 (file)
@@ -22,7 +22,7 @@ main()
                l = fgets(line, 500, f);
                if(l == NULL)
                        break;
                l = fgets(line, 500, f);
                if(l == NULL)
                        break;
-               if(rand() < 32768./p)
+               if(rand() < 2147483648./p)
                        strcpy(bline, line);
                p += 1.;
        }
                        strcpy(bline, line);
                p += 1.;
        }