Skip to content

Commit

Permalink
using faster/better Mersenne Twister generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Jones committed May 23, 2015
1 parent bfcebd3 commit 15fd14f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DiceCalc/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function get($min, $max) {
$result = $test_fn($min, $max);
}
else {
$result = rand($min, $max);
$result = mt_rand($min, $max);
}
return $result;
}
Expand Down Expand Up @@ -51,4 +51,4 @@ public static function queue_max() {
return $max;
});
}
}
}

0 comments on commit 15fd14f

Please # to comment.