Skip to content

Commit

Permalink
random_state removed, replaced with random_state
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Jun 30, 2015
1 parent 925b8c9 commit 2a75fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantecon/mc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def simulate(self, ts_length, init=None, num_reps=None):
except: # init is a scalar(int) or None
k = 1 if num_reps is None else num_reps
if init is None:
init_states = np.random.randint(self.n, size=k)
init_states = random_state.randint(self.n, size=k)
elif isinstance(init, int):
init_states = np.ones(k, dtype=int) * init
else:
Expand Down

0 comments on commit 2a75fc4

Please sign in to comment.