mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Switch to a better PRNG
This commit is contained in:
@@ -22,7 +22,7 @@ var stats = {"history":[]};
|
||||
function RollEm() {
|
||||
var Total = $("#Total");
|
||||
var ReRoll = $("#ReRoll");
|
||||
stats.seed = randseed;
|
||||
stats.seed = randseed();
|
||||
stats.total =
|
||||
Roll("STR") +
|
||||
Roll("CON") +
|
||||
@@ -79,7 +79,7 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
function UnrollClick() {
|
||||
randseed = stats.history.pop();
|
||||
randseed(stats.history.pop());
|
||||
$("#Unroll").attr("disabled", !stats.history.length);
|
||||
RollEm();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user