Skip to main content

random number generator with a twist

Project description

Numix !PyPI version !Build Status !Coverage Status

Numix is a Python package that generates random numbers of various types and distributions. You can use Numix to create random integers, floats, decimals, fractions, complex numbers, and more. Numix also supports generating random numbers from common probability distributions, such as uniform, normal, binomial, Poisson, etc.

Numix is useful for applications that require randomness, such as simulations, cryptography, games, testing, and data analysis. Numix is easy to use, flexible, and fast.

Installation You can install Numix from PyPI using pip:

pip install Numix

Alternatively, you can clone this repository and install from source:

git clone https://github.com/abelzk/numix.git cd Numix python setup.py install

Usage To use Numix, simply import the Numix module and call the appropriate function for the type of random number you want. For example:

Python

import Numix

Generate a random integer between 1 and 10

n = Numix.randint(1, 10) print(n)

Generate a random float between 0 and 1

x = Numix.random() print(x)

Generate a random decimal with 2 digits after the decimal point

d = Numix.decimal(2) print(d)

Generate a random fraction with denominator 5

f = Numix.fraction(5) print(f)

Generate a random complex number with real and imaginary parts between -1 and 1

c = Numix.complex() print(c)

Generate a random number from a normal distribution with mean 0 and standard deviation 1

z = Numix.normal() print(z) AI-generated code. Review and use carefully. More info on FAQ. For more details and examples, please refer to the documentation.

License Numix is licensed under the MIT License. See the LICENSE file for more information.

Contributing Numix is an open source project and welcomes contributions from anyone. If you have any suggestions, bug reports, or feature requests, please open an issue on GitHub. If you want to contribute code, please fork the repository and submit a pull request. See the CONTRIBUTING file for more guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numix-1.2.9.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numix-1.2.9-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file numix-1.2.9.tar.gz.

File metadata

  • Download URL: numix-1.2.9.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for numix-1.2.9.tar.gz
Algorithm Hash digest
SHA256 cf1ad5de5fb14d47f8448ac84c269b16710f41f30c4e2760aff50ed7e90b8471
MD5 f3359e00d60164f1a334a652c997baa0
BLAKE2b-256 c87d694fe28b5ff01b102d8b18a8b0260a682bae0538e21161c39f21aacf1624

See more details on using hashes here.

File details

Details for the file numix-1.2.9-py3-none-any.whl.

File metadata

  • Download URL: numix-1.2.9-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for numix-1.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab73b597eca429caa38664588e0c27117c85aa9581d27e174931f39e767aee2
MD5 c807e3eb793e45cb2a9847e89323e8e0
BLAKE2b-256 57620363786a4abaea4a0e40df4044694e0b82b3e653afa5bbce7fb774d51fd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page