Skip to content

Commit 040ca71

Browse files
committed
minor change to sphere test
1 parent c245519 commit 040ca71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/examples/vectors/test_sphere.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def random_vector(random: Generator, x: np.ndarray,
3333
:returns: the array `x`
3434
"""
3535
for i in range(len(x)):
36-
x[i] = min(x_max, max(
37-
x_min, x_min + random.random() * (x_max - x_min)))
36+
x[i] = random.uniform(x_min, x_max)
3837
return x
3938

4039

0 commit comments

Comments
 (0)