Skip to content

Commit f348e23

Browse files
committed
Merge branch 'master' into fix-gt-warning
2 parents aa35e3c + 35215de commit f348e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quantecon/random/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ def draw(cdf, size=None):
200200
"""
201201
if isinstance(size, types.Integer):
202202
def draw_impl(cdf, size):
203-
rs = np.random.random_sample(size)
203+
rs = np.random.random(size)
204204
out = np.empty(size, dtype=np.int_)
205205
for i in range(size):
206206
out[i] = searchsorted(cdf, rs[i])
207207
return out
208208
else:
209209
def draw_impl(cdf, size):
210-
r = np.random.random_sample()
210+
r = np.random.random()
211211
return searchsorted(cdf, r)
212212
return draw_impl

0 commit comments

Comments
 (0)