Commit bd9c0d23 authored by twanvl's avatar twanvl

use gen() instead of rand()

parent 49c94d80
......@@ -348,7 +348,7 @@ void PackInstance::generate(vector<CardP>* out) {
|| pack_type.select == SELECT_NONEMPTY) {
// multiple copies
for (size_t i = 0 ; i < requested_copies ; ++i) {
double r = rand() * total_probability;
double r = parent.gen() * total_probability / parent.gen.max();
if (r < cards.size()) {
// pick a card
card_copies++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment