Add seedable PRNG using an adaptation the original LCG algorithm.
[open-adventure.git] / actions2.c
index dcc649da04b43856bcace8eab25df80c5168c3f0..6b2889558bbeebb2d024e27b4b303e8660a0cbf3 100644 (file)
@@ -233,7 +233,7 @@ int throw(FILE *cmdin) {
        return(attack(cmdin));
 
 L9172: SPK=48;
-       if(RAN(7) < DFLAG) goto L9175;
+       if(randrange(7) < DFLAG) goto L9175;
        DSEEN[I]=false;
        DLOC[I]=0;
        SPK=47;