add random test files
This commit is contained in:
parent
c3d71de78e
commit
ca0325112b
2 changed files with 5 additions and 2 deletions
|
|
@ -5,5 +5,6 @@ except ImportError:
|
|||
|
||||
rng = np.random.Generator(1234)
|
||||
|
||||
random_array = rng.random((1, 2))
|
||||
print("random() shape:", random_array.shape)
|
||||
for generator in (rng.normal, rng.random, rng.uniform):
|
||||
random_array = generator(size=(1, 2))
|
||||
print("array shape:", random_array.shape)
|
||||
2
tests/2d/numpy/random.py.exp
Normal file
2
tests/2d/numpy/random.py.exp
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
random() shape: (1, 2)
|
||||
normal() shape: (3, 3)
|
||||
Loading…
Reference in a new issue