Skip to main content

A Python package for enhanced randomization functions

Project description

RandomAKA

RandomAKA is a Python package that provides various randomization utilities, including number generation, string manipulation, data shuffling, and collection randomization. It is designed for developers who need quick and reliable randomization functions.

Features

  • Generate random numbers, including integers and floats.
  • Create random strings with alphanumeric characters.
  • Randomize lists, tuples, sets, and dictionaries.
  • Efficient shuffling for sequences.
  • More utilities coming soon!

Installation

You can install RandomAKA using pip:

pip install RandomAKA

Usage

Importing the module

import randomaka

Functions in RandomAK

1. Generating Random Lists

# Generate a list of 5 random integers between 10 and 50
random_list = randomak.randlist(5, 10, 50)
print(random_list)

🔹 Function: randlist(NoOfElements: int, Start: int = 0, End: int = 100) -> List[int]
🔹 Description: Returns a list of random integers.
🔹 Parameters:

  • NoOfElements: Number of integers in the list.
  • Start: Lower bound (inclusive).
  • End: Upper bound (inclusive).
    🔹 Returns: A list of random integers.

2. Generating Random Tuples

# Generate a tuple of 4 random numbers between 1 and 100
random_tuple = randomak.randtuple(4, 1, 100)
print(random_tuple)

🔹 Function: randtuple(NoOfElements: int, Start: int = 0, End: int = 100) -> Tuple[int, ...]
🔹 Description: Generates a tuple of random integers.
🔹 Parameters:

  • NoOfElements: Number of elements in the tuple.
  • Start: Lower bound (inclusive).
  • End: Upper bound (inclusive).
    🔹 Returns: A tuple of random integers.

3. Generating Random Dictionaries

# Generate a dictionary with 3 random key-value pairs
random_dict = randomak.randdic(3, 1, 100)
print(random_dict)

🔹 Function: randdic(NoOfElements: int, Start: int = 0, End: int = 100) -> Dict[int, int]
🔹 Description: Generates a dictionary with random integer keys and values.
🔹 Parameters:

  • NoOfElements: Number of key-value pairs.
  • Start: Lower bound for keys and values.
  • End: Upper bound for keys and values.
    🔹 Returns: A dictionary containing random integers as keys and values.

4. Generating Random Sets

# Generate a set of 6 random unique numbers
random_set = randomak.randset(6, 5, 100)
print(random_set)

🔹 Function: randset(NoOfElements: int, Start: int = 0, End: int = 100) -> Set[int]
🔹 Description: Generates a set of unique random integers.
🔹 Parameters:

  • NoOfElements: Number of unique integers.
  • Start: Lower bound (inclusive).
  • End: Upper bound (inclusive).
    🔹 Returns: A set of random unique integers.

Contributing

Contributions are welcome! Feel free to submit pull requests or report issues on our GitHub repository.

License

This project is licensed under the MIT License – see the LICENSE file for details.

Contact

For questions or support, contact AnbuKumaran Arangaperrumal at anbuku12345@gmail.com.

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

randomaka-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

randomaka-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file randomaka-1.0.0.tar.gz.

File metadata

  • Download URL: randomaka-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for randomaka-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ea52acc5389d9d9c4810dada4c1e6af4aff6281762aca3854fa6ef7df144d60
MD5 ccacb255390e2fd5c8d692faea33ade9
BLAKE2b-256 d581f308877c0bf005308d811606ef67916248721d92b90ad62e018921d54925

See more details on using hashes here.

File details

Details for the file randomaka-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: randomaka-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for randomaka-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f28ffb3708d54d7cc9643babf218344c92002e49d590929ab7f368cfd5fd5c2b
MD5 697beaaf9530ee2139fc6a208a4144dc
BLAKE2b-256 9d0c94d56e310ebfa12301e1670b7b0ed2f72cc8bab5a24502e9285841d6f18e

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