MAINT: Use randint instead of random_integers.

This commit is contained in:
Scott Sanderson
2016-09-09 17:22:29 -04:00
parent 6e3bfe2d78
commit ab9a5d7060
+2 -2
View File
@@ -172,7 +172,7 @@ class SeededRandomLoader(PrecomputedLoader):
"""
Return uniformly-distributed integers between 0 and 100.
"""
return (self.state.random_integers(low=0, high=100, size=shape)
return (self.state.randint(low=0, high=100, size=shape)
.astype('int64')) # default is system int
def _datetime_values(self, shape):
@@ -180,7 +180,7 @@ class SeededRandomLoader(PrecomputedLoader):
Return uniformly-distributed dates in 2014.
"""
start = Timestamp('2014', tz='UTC').asm8
offsets = self.state.random_integers(
offsets = self.state.randint(
low=0,
high=364,
size=shape,