numpy-choices


Namenumpy-choices JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/numpy_choices
SummarySome useful np.random functions
upload_time2022-12-29 20:17:46
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords random numpy choices
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Some useful np.random functions 

```python


$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]


    
```





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/numpy_choices",
    "name": "numpy-choices",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "random,numpy,choices",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/84/64/4676dfd135cc965d0c97a4caa6bfe317da635d4f348c450ec56e69e42776/numpy_choices-0.10.tar.gz",
    "platform": null,
    "description": "\n# Some useful np.random functions \n\n```python\n\n\n$pip install numpy-choices\nfrom numpy_choices import get_random_floats, get_random_ints, get_random_items_from_list\n\nrand = get_random_items_from_list(\n    list(range(1, 20)), size=10, replace=False, p=None, replace_raise=False\n)\nprint(rand)\n# [ 6 16 10  2  9  5 12 15  4 19]\n\nprint(get_random_ints(low=0, high=20, size=10))\n# [ 0 14  3 14  3 11 15  0  4  5]\n\nprint(get_random_floats(low=0, high=20, size=10))\n# [10.69714652  9.85398014  1.79753204 18.85165542  8.35101616  9.00431022\n#   0.04652976  4.05292685 13.6940055   2.25818349]\n\n\n    \n```\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Some useful np.random functions",
    "version": "0.10",
    "split_keywords": [
        "random",
        "numpy",
        "choices"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "004e1e984b6eaaa6299501a9526ae98e",
                "sha256": "d5d29d7fdb60fdcbc2329fc68d93870da26590deb6cdebdcb9b8737657face44"
            },
            "downloads": -1,
            "filename": "numpy_choices-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "004e1e984b6eaaa6299501a9526ae98e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4678,
            "upload_time": "2022-12-29T20:17:45",
            "upload_time_iso_8601": "2022-12-29T20:17:45.075732Z",
            "url": "https://files.pythonhosted.org/packages/72/88/1cf923aabf7dc8fc58af7f9ec8050b222b73252dfa6d80a18be56ccd3fd2/numpy_choices-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5867ff98a4336f390c6e6fd467028954",
                "sha256": "71976c605427718fae7b47116b0148eb70c9d6a0241fce9a89ac3a87da3a994c"
            },
            "downloads": -1,
            "filename": "numpy_choices-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "5867ff98a4336f390c6e6fd467028954",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3329,
            "upload_time": "2022-12-29T20:17:46",
            "upload_time_iso_8601": "2022-12-29T20:17:46.606835Z",
            "url": "https://files.pythonhosted.org/packages/84/64/4676dfd135cc965d0c97a4caa6bfe317da635d4f348c450ec56e69e42776/numpy_choices-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-29 20:17:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "numpy_choices",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "numpy-choices"
}
        
Elapsed time: 0.02490s