Skip to content

Commit

Permalink
generate random seeds for IndexDistribution upon creation of income d…
Browse files Browse the repository at this point in the history
…istribution, fixes #i1379
  • Loading branch information
sbenthall committed Feb 7, 2024
1 parent 638c5ca commit 7fa1a40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3742,6 +3742,7 @@ def construct_lognormal_income_process_unemployment(self):
"IncUnemp": IncUnemp_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)
)

PermShkDstn = IndexDistribution(
Expand All @@ -3751,6 +3752,8 @@ def construct_lognormal_income_process_unemployment(self):
"n_approx": PermShkCount_list,
"neutral_measure": neutral_measure_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)
)

TranShkDstn = IndexDistribution(
Expand All @@ -3761,6 +3764,9 @@ def construct_lognormal_income_process_unemployment(self):
"IncUnemp": IncUnemp_list,
"n_approx": TranShkCount_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)

)

return IncShkDstn, PermShkDstn, TranShkDstn
Expand Down

0 comments on commit 7fa1a40

Please sign in to comment.