Skip to content

Commit

Permalink
Restore random number generator code block.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Oct 18, 2024
1 parent f950512 commit ede9b27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/resampling_method.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ import numpy as np
We also need to ask Numpy for something (that we will call an "object") that
can generate random numbers. Such an object is known as a "random number
generator".

```{python}
# Ask NumPy for a random number generator.
# Name it `rnd` — short for "random"
rnd = np.random.default_rng()
```
:::

Recall that we want 16 10-sided dice — one per ambulance. Our dice should
Expand Down

0 comments on commit ede9b27

Please sign in to comment.