Skip to content

Commit 477671f

Browse files
Sheppard, KevinSheppard, Kevin
authored andcommitted
FIX: Move old names to all modules
Ensure old names for uniform random numbers are available in all modules
1 parent 7ed4529 commit 477671f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

randomstate/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
from randomstate.prng.mt19937 import *
44
from randomstate.entropy import random_entropy
55
import randomstate.prng
6-
7-
sample = ranf = random = random_sample

randomstate/interface.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4224,3 +4224,5 @@ dirichlet = _rand.dirichlet
42244224

42254225
shuffle = _rand.shuffle
42264226
permutation = _rand.permutation
4227+
4228+
sample = ranf = random = random_sample

0 commit comments

Comments
 (0)