Add seedable PRNG using an adaptation the original LCG algorithm.

This commit is contained in:
Jason S. Ninneman 2017-05-23 23:37:56 -07:00
parent 2bc887c84e
commit 8a8770375e
7 changed files with 48 additions and 34 deletions

View 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;