From d3c2e4a728d6fe78cf6df2bf9fb6c6096a0db1b2 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Thu, 7 Nov 2024 23:31:03 -0600 Subject: [PATCH] v.1.0.44 --- package/README.md | 2 ++ package/pyproject.toml | 2 +- package/src/firepup650/__init__.py | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/package/README.md b/package/README.md index 14fadc5..9afd9cf 100644 --- a/package/README.md +++ b/package/README.md @@ -1,6 +1,8 @@ # Firepup650 Package containing various shorthand things I use, and a few imports I almost always use ### Change log: +#### v.1.0.44: +Added a getRandomNumber function (xkcd 221) #### v.1.0.43: Called the error the wrong thing #### v.1.0.42: diff --git a/package/pyproject.toml b/package/pyproject.toml index dfd596c..72bcaa8 100644 --- a/package/pyproject.toml +++ b/package/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "firepup650" -version = "1.0.43" +version = "1.0.44" authors = ["Firepup650 "] description = "Package containing various shorthand things I use, and a few imports I almost always use" readme = "README.md" diff --git a/package/src/firepup650/__init__.py b/package/src/firepup650/__init__.py index 83251bc..af4db5f 100644 --- a/package/src/firepup650/__init__.py +++ b/package/src/firepup650/__init__.py @@ -992,3 +992,18 @@ if fkey: if current < 0: current = limit - 1 return options[choices[current]] + + +def getRandomNumber() -> int: + """# Function: getRandomNumber + Returns 4 + # Inputs: + None + + # Returns: + int - 4 + + # Raises: + None""" + return 4 # chosen by fair dice roll. + # garunteed to be random.