From 08eecfff8a7998d33782e94647b12d1ce84773b3 Mon Sep 17 00:00:00 2001 From: Linus Sommer <95619282+linus-md@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:39:49 +0100 Subject: [PATCH] DOC: Add notes to `rng.bytes()` (#25528) DOC: Add notes to `rng.bytes()` --- numpy/random/_generator.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index 5aa32f33c9f8..d6ae37b06779 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -717,6 +717,12 @@ cdef class Generator: out : bytes String of length `length`. + Notes + ----- + This function generates random bytes from a discrete uniform + distribution. The generated bytes are independent from the CPU's + native endianness. + Examples -------- >>> rng = np.random.default_rng()