Skip to content

Commit

Permalink
Use better RNG
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Mar 16, 2024
1 parent c84e1fd commit c339a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ <h4 id="yesterday-or-random" class="answers">Yesterday's answers</h4>
seed = Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
}

var puzzle = allpuzzles.at(seed % numpuzzles)
var puzzle = allpuzzles.at(seed % 131071 % numpuzzles)
var start = Math.floor(seed / numpuzzles) % 7;

return puzzle.slice(start) + puzzle.slice(0, start);
Expand Down

0 comments on commit c339a04

Please sign in to comment.