Add seedable PRNG using an adaptation the original LCG algorithm.
This commit is contained in:
parent
2bc887c84e
commit
8a8770375e
7 changed files with 48 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue