Implemented Mersenne Twister RNG.
This commit is contained in:
@@ -39,6 +39,7 @@ All rights reserved.
|
||||
#include "Menu.h"
|
||||
#include "Merchant.h"
|
||||
#include "Crawler.h"
|
||||
#include "util.h"
|
||||
|
||||
INCLUDE_game
|
||||
INCLUDE_ITEM_CATEGORIES
|
||||
@@ -50,7 +51,7 @@ MerchantFunctionPrimingData Merchant::sellFunctionPrimed("CanSellItem()");
|
||||
Merchant Merchant::travelingMerchant;
|
||||
|
||||
const Merchant&Merchant::GetRandomMerchant(Chapter chapter){
|
||||
const Merchant&newMerchant=merchants[chapter][rand()%(merchants[chapter].size()-1)];
|
||||
const Merchant&newMerchant=merchants[chapter][util::random()%(merchants[chapter].size()-1)];
|
||||
return newMerchant;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user