From f226370aa29f15539f1db797557fe95085110bec Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Mon, 15 Jun 2026 08:12:05 +0200 Subject: [PATCH] fix typo in slides --- slides/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slides/index.md b/slides/index.md index 4970bdc..5eff7d7 100644 --- a/slides/index.md +++ b/slides/index.md @@ -501,11 +501,11 @@ Let's add some new functionality that uses numpy import numpy as np -def roll_dice(n_dice: int, n_sides: int): - return np.random.randint(1, n_sides, n_dice) - def flip_coin(): return np.random.choice(["Heads", "Tails"]) + +def roll_dice(n_dice: int, n_sides: int): + return np.random.randint(1, n_sides + 1, n_dice) ``` ```python