Switch to a better PRNG

This commit is contained in:
Eric Fredricksen
2010-06-26 23:57:33 -07:00
parent eb753b2c9d
commit f3d8c59e1e
2 changed files with 102 additions and 16 deletions
+2 -2
View File
@@ -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();
}