Skip to content

Commit

Permalink
DOC: Add notes to rng.bytes() (numpy#25528)
Browse files Browse the repository at this point in the history
DOC: Add notes to `rng.bytes()`
  • Loading branch information
linus-md committed Feb 2, 2024
1 parent 4d22cac commit 08eecff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions numpy/random/_generator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 08eecff

Please sign in to comment.