mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
use gen() instead of rand()
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1315 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+1
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user