Skip to main content

random value selector with associated probability package

Project description

Description: ..\randSelector\randSelector\rand_selector module contains a function select_rand_item, that can select a random a item from a data set with its associated probability

pip instalattion: give the following command to add the module to your environment: 'pip install randSelector'

get access to the functions by adding the following to the top of your script: 'from randSelector import rand_selector'

to test, run command: select_rand_item( ((1, 0.6), (3, 0.4))), seed_num=10) from any script

OR

run ..\MsAssesment\randSelector\unitTest\test_rand_selector.py from the zipped folder after installing pip package above
this will unit test the module.Also, additional tests can be written to extend test covergage

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

randSelector-1.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

randSelector-1.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file randSelector-1.0.3.tar.gz.

File metadata

  • Download URL: randSelector-1.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for randSelector-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9020ca51425b70ba6e3276aceff2ba82dd9853ecf9dcadb2d79706c008800a61
MD5 40a5033ff3094fffff2f1f4880a2af5f
BLAKE2b-256 4e621442ea6b7e62aad888f14607ae5b6ce767ecbd7eddf8fb409331e891f226

See more details on using hashes here.

File details

Details for the file randSelector-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: randSelector-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for randSelector-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ace8bbd1ca215a2ecb61dfa6fda1aab66a1715740631088bc8312b770a5a30de
MD5 5be67dcb7845cab6eae1e93bb3c1a956
BLAKE2b-256 11aa56ab8223f3e47531e41095f62034b9ecc49c9d715725c6c57014c9c1750a

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