diff --git a/.cache/replit/__replit_disk_meta.json b/.cache/replit/__replit_disk_meta.json index 709e1ad..ce18320 100644 --- a/.cache/replit/__replit_disk_meta.json +++ b/.cache/replit/__replit_disk_meta.json @@ -1 +1 @@ -{"nonce":8007497514754667753,"last_updated":{"seconds":1682009848,"nanos":223989000}} +{"nonce":5305264078435694787,"last_updated":{"seconds":1682041440,"nanos":28465000}} diff --git a/__pycache__/build.cpython-38.pyc b/__pycache__/build.cpython-38.pyc index 379e6dc..e249cc6 100644 Binary files a/__pycache__/build.cpython-38.pyc and b/__pycache__/build.cpython-38.pyc differ diff --git a/package/README.md b/package/README.md index 2bde175..c507fe0 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.2: +Random shorthand (litterally) ###### v.1.0.1: Added animated typing function, sleep shorthand ###### v.1.0.0: diff --git a/package/dist/firepup650-1.0.1-py3-none-any.whl b/package/dist/firepup650-1.0.1-py3-none-any.whl deleted file mode 100644 index 1e9571a..0000000 Binary files a/package/dist/firepup650-1.0.1-py3-none-any.whl and /dev/null differ diff --git a/package/dist/firepup650-1.0.1.tar.gz b/package/dist/firepup650-1.0.1.tar.gz deleted file mode 100644 index f643899..0000000 Binary files a/package/dist/firepup650-1.0.1.tar.gz and /dev/null differ diff --git a/package/dist/firepup650-1.0.2-py3-none-any.whl b/package/dist/firepup650-1.0.2-py3-none-any.whl new file mode 100644 index 0000000..6ecea5c Binary files /dev/null and b/package/dist/firepup650-1.0.2-py3-none-any.whl differ diff --git a/package/dist/firepup650-1.0.2.tar.gz b/package/dist/firepup650-1.0.2.tar.gz new file mode 100644 index 0000000..5baece3 Binary files /dev/null and b/package/dist/firepup650-1.0.2.tar.gz differ diff --git a/package/setup.cfg b/package/setup.cfg index 0ec8f51..df11df8 100644 --- a/package/setup.cfg +++ b/package/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = firepup650 -version = 1.0.1 +version = 1.0.2 author = Firepup650 author_email = firepyp650@gmail.com description = Package containing various shorthand things I use, and a few imports I almost always use diff --git a/package/src/firepup650.egg-info/PKG-INFO b/package/src/firepup650.egg-info/PKG-INFO index cdd344a..b6dbacc 100644 --- a/package/src/firepup650.egg-info/PKG-INFO +++ b/package/src/firepup650.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: firepup650 -Version: 1.0.1 +Version: 1.0.2 Summary: Package containing various shorthand things I use, and a few imports I almost always use Home-page: https://github.com/F1repup650/firepup650-PYPI Author: Firepup650 @@ -11,6 +11,8 @@ Project-URL: replit, https://replit.com/@Firepup650/firepup650-PYPI-Package Description: # Firepup650 Package containing various shorthand things I use, and a few imports I almost always use #### Change log: + ###### v.1.0.2: + Random shorthand (litterally) ###### v.1.0.1: Added animated typing function, sleep shorthand ###### v.1.0.0: diff --git a/package/src/firepup650/__init__.py b/package/src/firepup650/__init__.py index 3a3f7a9..4eda754 100644 --- a/package/src/firepup650/__init__.py +++ b/package/src/firepup650/__init__.py @@ -2,6 +2,7 @@ import os, sys, termios, tty, time import random as r import fkeycapture as fkey +from collections import Sequence def clear() -> None: """# Function: clear Clears the screen @@ -115,3 +116,24 @@ def sleep(seconds: float = 0.5) -> None: # Raises: None""" time.sleep(seconds) +def rseed(seed: any = None, version: int = 2) -> None: + """# Function: rseed + reseed the random number generator + # Inputs: + seed: any - The seed, defaults to None + version: int - Version of the seed (1 or 2), defaults to 2 + + # Returns: + None + + # Raises: + None""" + r.seed(seed, version) +def robj(sequence: Sequence[object]) -> object: + """# Function: robj + Returns a random object from the provided sequence + # Input: + sequence: Sequence[object] - Any valid sequence + + # """ + r.choice(sequence) \ No newline at end of file