File tree 1 file changed +17
-2
lines changed 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -4142,9 +4142,7 @@ randn = _rand.randn
4142
4142
random = _rand .random_sample
4143
4143
random_integers = _rand .random_integers
4144
4144
random_sample = _rand .random_sample
4145
- ranf = _rand .random_sample
4146
4145
rayleigh = _rand .rayleigh
4147
- sample = _rand .random_sample
4148
4146
seed = _rand .seed
4149
4147
set_state = _rand .set_state
4150
4148
shuffle = _rand .shuffle
@@ -4160,6 +4158,21 @@ wald = _rand.wald
4160
4158
weibull = _rand .weibull
4161
4159
zipf = _rand .zipf
4162
4160
4161
+ # Old aliases that should not be removed
4162
+ def sample (* args , ** kwargs ):
4163
+ """
4164
+ This is an alias of `random_sample`. See `random_sample` for the complete
4165
+ documentation.
4166
+ """
4167
+ return _rand .random_sample (* args , ** kwargs )
4168
+
4169
+ def ranf (* args , ** kwargs ):
4170
+ """
4171
+ This is an alias of `random_sample`. See `random_sample` for the complete
4172
+ documentation.
4173
+ """
4174
+ return _rand .random_sample (* args , ** kwargs )
4175
+
4163
4176
__all__ = [
4164
4177
'beta' ,
4165
4178
'binomial' ,
@@ -4193,7 +4206,9 @@ __all__ = [
4193
4206
'randn' ,
4194
4207
'random_integers' ,
4195
4208
'random_sample' ,
4209
+ 'ranf' ,
4196
4210
'rayleigh' ,
4211
+ 'sample' ,
4197
4212
'seed' ,
4198
4213
'set_state' ,
4199
4214
'shuffle' ,
You can’t perform that action at this time.
0 commit comments