summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/_common.pyx2
-rw-r--r--numpy/random/_examples/cython/extending.pyx2
-rw-r--r--numpy/random/bit_generator.pyx2
-rw-r--r--numpy/random/tests/test_generator_mt19937.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx
index 864150458..607034a38 100644
--- a/numpy/random/_common.pyx
+++ b/numpy/random/_common.pyx
@@ -65,7 +65,7 @@ cdef object random_raw(bitgen_t *bitgen, object lock, object size, object output
Notes
-----
- This method directly exposes the the raw underlying pseudo-random
+ This method directly exposes the raw underlying pseudo-random
number generator. All values are returned as unsigned 64-bit
values irrespective of the number of bits produced by the PRNG.
diff --git a/numpy/random/_examples/cython/extending.pyx b/numpy/random/_examples/cython/extending.pyx
index 3a7f81aa0..30efd7447 100644
--- a/numpy/random/_examples/cython/extending.pyx
+++ b/numpy/random/_examples/cython/extending.pyx
@@ -31,7 +31,7 @@ def uniform_mean(Py_ssize_t n):
random_values = np.empty(n)
# Best practice is to acquire the lock whenever generating random values.
# This prevents other threads from modifying the state. Acquiring the lock
- # is only necessary if if the GIL is also released, as in this example.
+ # is only necessary if the GIL is also released, as in this example.
with x.lock, nogil:
for i in range(n):
random_values[i] = rng.next_double(rng.state)
diff --git a/numpy/random/bit_generator.pyx b/numpy/random/bit_generator.pyx
index 123d77b40..fe45f85b0 100644
--- a/numpy/random/bit_generator.pyx
+++ b/numpy/random/bit_generator.pyx
@@ -576,7 +576,7 @@ cdef class BitGenerator():
Notes
-----
- This method directly exposes the the raw underlying pseudo-random
+ This method directly exposes the raw underlying pseudo-random
number generator. All values are returned as unsigned 64-bit
values irrespective of the number of bits produced by the PRNG.
diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py
index e16a82973..7c61038a4 100644
--- a/numpy/random/tests/test_generator_mt19937.py
+++ b/numpy/random/tests/test_generator_mt19937.py
@@ -2563,7 +2563,7 @@ class TestSingleEltArrayInput:
def test_jumped(config):
# Each config contains the initial seed, a number of raw steps
# the sha256 hashes of the initial and the final states' keys and
- # the position of of the initial and the final state.
+ # the position of the initial and the final state.
# These were produced using the original C implementation.
seed = config["seed"]
steps = config["steps"]