From 7560718473d214c2aae5fb4bd6d142265a98fbac Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Wed, 6 Mar 2024 19:17:12 -0600 Subject: [PATCH] Mods --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8348d70..182d0d3 100644 --- a/main.py +++ b/main.py @@ -71,8 +71,9 @@ def random_int(min_val, max_val): def random_date(): + one_hundred = 36525 current_date = datetime.now() - end_date = current_date + timedelta(days=36525) # 365 days * 100 years + end_date = current_date + timedelta(days=(one_hundred // 2)) random_days = random.randint(0, (end_date - current_date).days) random_date = current_date + timedelta(days=random_days) return random_date.strftime("%d %b %Y")