A simple and user-friendly Random Number Generator built with PyQt5. This application allows users to generate a random number between 1 and 1000 with the click of a button. Additionally, it includes a dark mode toggle for better usability.
✅ Generate Random Numbers – Click a button to generate a random number between 1 and 1000.
✅ Dark Mode Support – Toggle between light and dark themes for a better user experience.
✅ Minimalist UI – A clean, easy-to-use graphical interface using PyQt5.
✅ Cross-Platform – Works on Windows, macOS, and Linux.
Ensure you have the following installed before running the application:
- Operating System: Windows, macOS, or Linux
- Python Version: Python 3.7+ (Recommended: Python 3.10+)
- Memory: At least 512MB RAM (minimal usage)
- Storage: Less than 10MB
The application requires the PyQt5 library for the graphical user interface.
- Install dependencies using pip:
pip install PyQt5
Follow these steps to clone and run the project:
git clone https://github.com/Develifture/Python-Random-Number-Generator-.git
cd Python-Random-Number-Generatorpip install -r requirements.txt(If you don’t have a requirements.txt, manually install PyQt5 as shown in the previous step.)
python main.py- Open the application.
- Click the "Generate Random Number" button to get a random number.
- Toggle "Dark Mode" for a different theme.
- Enjoy generating numbers! 🎉
- The default theme is light mode.
- Click the "Toggle Dark Mode" button to switch between themes.
- You can edit the styles in
set_theme()function insidemain.py.
If you get an error when installing PyQt5, try:
pip install --upgrade pip
pip install PyQt5- Ensure you are using Python 3.7+
- Check if PyQt5 is installed:
python -c "import PyQt5; print(PyQt5.__version__)"
- Try running with:
python main.py --style=Fusion
This project is open-source and free to use under the MIT License.
- GitHub: Develifture
- Project Repository: Python-Random-Number-Generator