Catalog PyPI
Back to packageRELEASE DETAILS

1.1

PyPI

adjustable-random-package

Adjustable random number generator

Published8 Feb 2023
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 1.1 documentation

More adjustable random functions

Generating adjustable random values, from min to max with numbers to adjust.

For example, we have values from 1 to 10.

If number 2 and 3 will be in numbers to adjust with k=5, final array will look like this:

[1,2,2,2,2,2,3,3,3,3,3,4,5,6,7,8,9,10]

and chance of random.choice for those values will be increased

Examples

Run basic functions

from adjustable_random import (
    get_adjustable_random_list,
    get_adjustable_random_value
)

if __name__ == '__main__':

    adjustable_list: list[int] = get_adjustable_random_list(
        min_value=0,
        max_value=100,
        numbers_to_adjust=[
            10,15
        ]
    )
    adjustable_value: int = get_adjustable_random_value(
        min_value=0,
        max_value=100,
        numbers_to_adjust=[
            10,15
        ]
    )

    print(f"{adjustable_list=}")
    print(f"{adjustable_value=}")

Run tests to see how it works

from adjustable_random import (
    init_random_values,
    run_graph_test
)

if __name__ == '__main__':
    values: list[int] = init_random_values()
    run_graph_test(values)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
matplotlib
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
matplotlibruntime

Distribution files

2 collected
adjustable_random_package-1.1-py3-none-any.whl

bdist_wheel · 4.45 KB · Python py3

Source file
adjustable_random package-1.1.tar.gz

sdist · 3.29 KB · Python source

Source file

Repository

PENDING
dinosaurtirex/adjustable-random

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:8d4d1017b0fe8b584beecd69efddd27075527ed1fd4ecc049a0990c3fbe92248

Other collected versions

View all collected versions →