Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
  • Loading branch information
davrot authored Nov 23, 2023
1 parent b03b184 commit 9998bf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numpy_random/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ rng = np.random.default_rng()
print(rng) # -> Generator(PCG64)
```
If you don't like it there are other options:

| |
| -------------|
|[MT19937](https://numpy.org/doc/stable/reference/random/bit_generators/mt19937.html)|
Expand All @@ -67,6 +68,7 @@ If you don't like it there are other options:

## [Distributions](https://numpy.org/doc/stable/reference/random/generator.html#distributions) (you will use)
The most important ones are in **bold**. If you see a function argument *out*, then you can reuse an existing np array (i.e. [in-place operation](https://numpy.org/doc/stable/reference/random/generator.html#in-place-vs-copy)) as target.

| | |
| ------------- |:-------------:|
|**[integers(low[, high, size, dtype, endpoint])](https://numpy.org/doc/stable/reference/random/generated/numpy.random.Generator.integers.html#numpy.random.Generator.integers)**| Return random integers from low (inclusive) to high (exclusive), or if endpoint=True, low (inclusive) to high (inclusive). |
Expand Down Expand Up @@ -131,6 +133,7 @@ p: [0.16666667 0.33333333 0.5 ]
```

## [Permutations](https://numpy.org/doc/stable/reference/random/generator.html#permutations)

| | |
| ------------- |:-------------:|
|[shuffle(x[, axis])](https://numpy.org/doc/stable/reference/random/generated/numpy.random.Generator.shuffle.html#numpy.random.Generator.shuffle)|Modify an array or sequence in-place by shuffling its contents.|
Expand Down

0 comments on commit 9998bf9

Please sign in to comment.