def simulate(self, init_stock_price, random_seed=42):
    np.random.seed(random_seed)
    self.white_noise = self._get_white_noise()
    self.brownian_motion = self._get_brownian_motion(self.white_noise)
    self.price = self._get_stock_price(init_stock_price)
def simulate(self, init_stock_price, random_seed=42):
    np.random.seed(random_seed)
    self.white_noise = self._get_white_noise()
    self.brownian_motion = self._get_brownian_motion(self.white_noise)
    self.price = self._get_stock_price(init_stock_price)