Random number generation library that uses Gemini to generate numbers with vibes
Project description
VibeRandom 🎲
AI-powered random number generation using Gemini Flash API. Generate numbers that match your vibe!
Installation
Install the package:
pip install viberandom
Set your Gemini API key as an environment variable:
export GEMINI_API_KEY=your_key_here
Usage
from viberandom import viberandom, viberandom_single
# Generate lucky numbers
lucky_nums = viberandom(1, 100, "lucky", count=5)
print(lucky_nums) # e.g., [7, 77, 13, 888, 21]
# Generate a single chaotic number
chaos = viberandom_single(1, 1000, "chaotic")
print(chaos) # e.g., 347
# Generate peaceful numbers
peaceful = viberandom(1, 50, "peaceful", count=3)
print(peaceful) # e.g., [10, 20, 30]
# Generate energetic numbers
energy = viberandom(50, 100, "energetic", count=4)
print(energy) # e.g., [89, 97, 83, 91]
Vibe Ideas
Try these vibes for different number personalities:
- lucky - Numbers that feel fortunate (7, 77, 888, etc.)
- chaotic - Unpredictable, irregular numbers
- peaceful - Round, harmonious numbers
- energetic - High, dynamic numbers
- mysterious - Numbers with enigmatic qualities
- cozy - Warm, comfortable feeling numbers
- dramatic - Bold, striking numbers
- vintage - Numbers that feel classic or retro
- cosmic - Space-age, otherworldly numbers
- spicy - Numbers with kick and attitude
Parameters
min_value(int): Minimum value for random numbers (default: 1)max_value(int): Maximum value for random numbers (default: 100)vibe(str): The feeling/vibe for the numbers (default: "random")count(int): How many numbers to generate (default: 1)
Fallback Behavior
If the AI fails to generate numbers (network issues, invalid API key, etc.), VibeRandom automatically falls back to regular random number generation to ensure your code never breaks.
Testing
pytest tests/
Dependencies
- google-generativeai
- pydantic
- typing-extensions
⚠️ Requires Gemini API key. Experimental project - not for production use.
Fun Examples
# Generate lottery numbers with "millionaire" vibes
lottery = viberandom(1, 69, "millionaire", count=6)
# Get a spooky number for Halloween
spooky = viberandom_single(13, 666, "spooky")
# Generate zen meditation numbers
zen = viberandom(1, 108, "zen", count=3)
# Create birthday party numbers
party = viberandom(1, 31, "celebration", count=1)
Have fun with AI-powered randomness! 🎉
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viberandom-0.1.0.tar.gz.
File metadata
- Download URL: viberandom-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68e39c8d9e88ad48b218ca875a3b480a2d51c89a4238711fbe45ba3a5ba64834
|
|
| MD5 |
3177a891e1f61554b1fd790361ecbaaf
|
|
| BLAKE2b-256 |
f70e22b31110868e3e1130663afbb36f965a62774cbd9785fd2fbf1ec583dec2
|
File details
Details for the file viberandom-0.1.0-py3-none-any.whl.
File metadata
- Download URL: viberandom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7b10e9ab3e64e3e0fd8aa72bdbaa134bc3dbe85f4f26a96bab7e478c44e36f
|
|
| MD5 |
be947817f238392f2a2f5870e15064b7
|
|
| BLAKE2b-256 |
c0d6847b48017449d9be6e898fffa868d24f477816b6dcb01e02741d2294494f
|