Skip to main content

Some useful np.random functions

$pip install numpy-choices
from numpy_choices import get_random_floats, get_random_ints, get_random_items_from_list

rand = get_random_items_from_list(
    list(range(1, 20)), size=10, replace=False, p=None, replace_raise=False
)
print(rand)
# [ 6 16 10  2  9  5 12 15  4 19]

print(get_random_ints(low=0, high=20, size=10))
# [ 0 14  3 14  3 11 15  0  4  5]

print(get_random_floats(low=0, high=20, size=10))
# [10.69714652  9.85398014  1.79753204 18.85165542  8.35101616  9.00431022
#   0.04652976  4.05292685 13.6940055   2.25818349]


    

Metadata

Release files for numpy-choices 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numpy-choices 0.10
File Size Uploaded Provenance Actions
numpy_choices-0.10.tar.gz 3.3 kB Without provenance Details for numpy_choices-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numpy-choices 0.10
File Interpreter ABI Platform Actions
numpy_choices-0.10-py3-none-any.whl Python 3 none any Details for numpy_choices-0.10-py3-none-any.whl

Total release size: 8.0 kB

Release files / numpy_choices-0.10.tar.gz

Download URL numpy_choices-0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
71976c605427718fae7b47116b0148eb70c9d6a0241fce9a89ac3a87da3a994c
BLAKE2b-256 checksum
How to use checksums
84644676dfd135cc965d0c97a4caa6bfe317da635d4f348c450ec56e69e42776
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / numpy_choices-0.10-py3-none-any.whl

Download URL numpy_choices-0.10-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5d29d7fdb60fdcbc2329fc68d93870da26590deb6cdebdcb9b8737657face44
BLAKE2b-256 checksum
How to use checksums
72881cf923aabf7dc8fc58af7f9ec8050b222b73252dfa6d80a18be56ccd3fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for numpy-choices 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page