Skip to content

Commit 25f9a99

Browse files
DOC: Revert default_rng example text indentation
[skip azp] [skip cirrus]
1 parent 30301ed commit 25f9a99

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

doc/source/reference/random/index.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,14 @@ different distributions.
2020

2121
>>> import numpy as np
2222
>>> rng = np.random.default_rng()
23-
24-
Generate one random float uniformly distributed over the range [0, 1)
25-
23+
# Generate one random float uniformly distributed over the range [0, 1)
2624
>>> rng.random() #doctest: +SKIP
2725
0.06369197489564249 # may vary
28-
29-
Generate an array of 10 numbers according to a unit Gaussian distribution
30-
26+
# Generate an array of 10 numbers according to a unit Gaussian distribution
3127
>>> rng.standard_normal(10) #doctest: +SKIP
3228
array([-0.31018314, -1.8922078 , -0.3628523 , -0.63526532, 0.43181166, # may vary
3329
0.51640373, 1.25693945, 0.07779185, 0.84090247, -2.13406828])
34-
35-
Generate an array of 5 integers uniformly over the range [0, 10)
36-
30+
# Generate an array of 5 integers uniformly over the range [0, 10)
3731
>>> rng.integers(low=0, high=10, size=5) #doctest: +SKIP
3832
array([8, 7, 6, 2, 0]) # may vary
3933

0 commit comments

Comments
 (0)