回答編集履歴

1

追記

2018/03/21 06:22

投稿

can110
can110

スコア38266

test CHANGED
@@ -1,11 +1,17 @@
1
1
  [numpy.random.uniform](https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.uniform.html#numpy.random.uniform)でどうでしょう?
2
+
3
+ なお、要素数はsizeで指定できます。詳細はリファレンスを参照ください。
2
4
 
3
5
  ```Python
4
6
 
5
7
  import numpy as np
6
8
 
7
- r = np.random.uniform(0.25,0.5)
9
+ for _ in range(10):
8
10
 
11
+ size = np.random.randint(1,4)
12
+
13
+ r = np.random.uniform( 0.25, 0.5, size)
14
+
9
- print(r)
15
+ print(r)
10
16
 
11
17
  ```