nazo-rand


Namenazo-rand JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA fast random number generator for python
upload_time2023-10-28 12:00:44
maintainer
docs_urlNone
authorbymoye
requires_python>=3.8
licenseFree for non-commercial use
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nazo_rand

Inspired to write from [Pyewacket](https://github.com/BrokenShell/Pyewacket)

A fast random number generator for python

`rand_int.choice(seq: list|Tuple) -> Any`
example:

```python
from nazo_rand import choice
temp = [1,2,3,4,5,6]
choice(temp)
```

`rand_int.randbelow(a: int) -> int`
example:

```python
from nazo_rand import randbelow
randbelow(10)   # -> [0, 10)
randbelow(0)    # -> [0, 0) => 0
randbelow(-10)  # -> (-10, 0]
```

`rand_int.randint(a: int , b: int) -> int`
example:

```python
from nazo_rand import randint
randint(1, 10)   # -> [1, 10]
randint(10, 1)   # -> [1, 10]
randint(10, 10)  # -> [10, 10] => 10
```

`rand_int.randrange(start: int , stop: int = 0 , step: int = 1 )`
example:

```python
from nazo_rand import randrange
randrange(10)           # -> [0, 10) by whole numbers
randrange(1, 10)        # -> [1, 10) by whole numbers
randrange(1, 10, 2)     # -> [1, 10) by 2, odd numbers
randrange(-10)          # -> [-10, 0) by 1
randrange(10, 1)        # -> [1, 10) by 1
randrange(10, 0, 2)     # -> [0, 10) by 2, even numbers
randrange(10, 10, 0)    # -> [10, 10) => 10
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nazo-rand",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "bymoye",
    "author_email": "s3moye@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c8/fd/36eef7e8ebbd0cc63c36ce706d9fb3cbe390b09859580175df3dd62af378/nazo_rand-0.1.0.tar.gz",
    "platform": null,
    "description": "# nazo_rand\n\nInspired to write from [Pyewacket](https://github.com/BrokenShell/Pyewacket)\n\nA fast random number generator for python\n\n`rand_int.choice(seq: list|Tuple) -> Any`\nexample\uff1a\n\n```python\nfrom nazo_rand import choice\ntemp = [1,2,3,4,5,6]\nchoice(temp)\n```\n\n`rand_int.randbelow(a: int) -> int`\nexample:\n\n```python\nfrom nazo_rand import randbelow\nrandbelow(10)   # -> [0, 10)\nrandbelow(0)    # -> [0, 0) => 0\nrandbelow(-10)  # -> (-10, 0]\n```\n\n`rand_int.randint(a: int , b: int) -> int`\nexample:\n\n```python\nfrom nazo_rand import randint\nrandint(1, 10)   # -> [1, 10]\nrandint(10, 1)   # -> [1, 10]\nrandint(10, 10)  # -> [10, 10] => 10\n```\n\n`rand_int.randrange(start: int , stop: int = 0 , step: int = 1 )`\nexample:\n\n```python\nfrom nazo_rand import randrange\nrandrange(10)           # -> [0, 10) by whole numbers\nrandrange(1, 10)        # -> [1, 10) by whole numbers\nrandrange(1, 10, 2)     # -> [1, 10) by 2, odd numbers\nrandrange(-10)          # -> [-10, 0) by 1\nrandrange(10, 1)        # -> [1, 10) by 1\nrandrange(10, 0, 2)     # -> [0, 10) by 2, even numbers\nrandrange(10, 10, 0)    # -> [10, 10) => 10\n```\n",
    "bugtrack_url": null,
    "license": "Free for non-commercial use",
    "summary": "A fast random number generator for python",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cfa68ec1be27f89cfc489a8292d57978ce6beb3cc77ba2055b54a55edd0da46",
                "md5": "a90ab38a5f773c898fcb27fa12602d11",
                "sha256": "7b803f435b10b958b162609c28ccdd478e5576278cc5e145b3b5c257605a26a4"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a90ab38a5f773c898fcb27fa12602d11",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 90337,
            "upload_time": "2023-10-28T12:00:21",
            "upload_time_iso_8601": "2023-10-28T12:00:21.728183Z",
            "url": "https://files.pythonhosted.org/packages/2c/fa/68ec1be27f89cfc489a8292d57978ce6beb3cc77ba2055b54a55edd0da46/nazo_rand-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c3c4c6a438bdf8aff79cff3c97b28855ebe1f61966fe503c2595cbf131004d0b",
                "md5": "85d678f10d8c083d73dad9d84134280a",
                "sha256": "64ba8dcf8d17dba80f9fa03f3ca546bfc5c9598b07ebfcd177fed50109100e21"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "85d678f10d8c083d73dad9d84134280a",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 256517,
            "upload_time": "2023-10-28T12:00:23",
            "upload_time_iso_8601": "2023-10-28T12:00:23.713379Z",
            "url": "https://files.pythonhosted.org/packages/c3/c4/c6a438bdf8aff79cff3c97b28855ebe1f61966fe503c2595cbf131004d0b/nazo_rand-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13027dec54f02bfa20ae2b1d74a3f38675b024010be0509da8a464ba000f8954",
                "md5": "792c330fdedf785eb95e1a5c76313292",
                "sha256": "e6c57d102c7f34b16393f35a7c6a4edb40b8a787a9ea68cb93a31c506d8d7134"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "792c330fdedf785eb95e1a5c76313292",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 90175,
            "upload_time": "2023-10-28T12:00:25",
            "upload_time_iso_8601": "2023-10-28T12:00:25.125326Z",
            "url": "https://files.pythonhosted.org/packages/13/02/7dec54f02bfa20ae2b1d74a3f38675b024010be0509da8a464ba000f8954/nazo_rand-0.1.0-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19bff4b3e1df2a0237c64e7d7b9c3e9ae6414f71ae1624299b97e6b6cac4b012",
                "md5": "15c815d455e43d455db553e7085dbc3d",
                "sha256": "af07c3db37b8429a265500914a27d425b0ec07d53b155078b4ee3876559fb7b4"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp311-cp311-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "15c815d455e43d455db553e7085dbc3d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 115983,
            "upload_time": "2023-10-28T12:00:26",
            "upload_time_iso_8601": "2023-10-28T12:00:26.745390Z",
            "url": "https://files.pythonhosted.org/packages/19/bf/f4b3e1df2a0237c64e7d7b9c3e9ae6414f71ae1624299b97e6b6cac4b012/nazo_rand-0.1.0-cp311-cp311-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e0eda83b418d8e9d02db44ba08988bce4e680656a1f1cfd87d93c66ec7fa6d1c",
                "md5": "ef20ad184a62afbc828bf549d2ea0706",
                "sha256": "72495e4d62e453ea6a5c1df10abf5f0025f939da7c77a44f73b637610d6ed512"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ef20ad184a62afbc828bf549d2ea0706",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 275872,
            "upload_time": "2023-10-28T12:00:27",
            "upload_time_iso_8601": "2023-10-28T12:00:27.928016Z",
            "url": "https://files.pythonhosted.org/packages/e0/ed/a83b418d8e9d02db44ba08988bce4e680656a1f1cfd87d93c66ec7fa6d1c/nazo_rand-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13781a80dd8b579c34b1d9a1fcfb94079f0002f642ce567765cf7e6d91132a74",
                "md5": "71686ef4a2bcd2c8da8a26606cc79eb4",
                "sha256": "56c97f7efea30280e4206b5e989cf799d9002666cc407deef58881cc20caab5b"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "71686ef4a2bcd2c8da8a26606cc79eb4",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 90213,
            "upload_time": "2023-10-28T12:00:29",
            "upload_time_iso_8601": "2023-10-28T12:00:29.610820Z",
            "url": "https://files.pythonhosted.org/packages/13/78/1a80dd8b579c34b1d9a1fcfb94079f0002f642ce567765cf7e6d91132a74/nazo_rand-0.1.0-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e217e6e5f1c532fb7d7f8aaf7dc47b87e0bf118af231e5a8cf3c581407f08e35",
                "md5": "100b0690aca0eaa408ea20967f0e9953",
                "sha256": "40744c72071013bc7d943176ec850772fab10cea302de4204d4299418624e899"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp312-cp312-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "100b0690aca0eaa408ea20967f0e9953",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 116616,
            "upload_time": "2023-10-28T12:00:31",
            "upload_time_iso_8601": "2023-10-28T12:00:31.166999Z",
            "url": "https://files.pythonhosted.org/packages/e2/17/e6e5f1c532fb7d7f8aaf7dc47b87e0bf118af231e5a8cf3c581407f08e35/nazo_rand-0.1.0-cp312-cp312-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c00f9197c01075ad3b7028f92d5907dea531d65f0aae01fdd85c388ebf3d9b1",
                "md5": "c439d5742e9416d494410b214f117901",
                "sha256": "0351c3366c03cd2f0fab2c9cbb6889db8e4e75c2c7d9251f4bc3b5692e8e0c4e"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c439d5742e9416d494410b214f117901",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 284109,
            "upload_time": "2023-10-28T12:00:32",
            "upload_time_iso_8601": "2023-10-28T12:00:32.439691Z",
            "url": "https://files.pythonhosted.org/packages/4c/00/f9197c01075ad3b7028f92d5907dea531d65f0aae01fdd85c388ebf3d9b1/nazo_rand-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e1c01cde6a722dc6c1f0e841b98b8f037471897fa1b47c77b03d25e5b3b65a3",
                "md5": "656cf077a602b57ae8f80ce77e9fda81",
                "sha256": "68a0eee20fe1392a19628e5be248e89f0477144acc5a81ee4dd43228340c958e"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "656cf077a602b57ae8f80ce77e9fda81",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 90477,
            "upload_time": "2023-10-28T12:00:34",
            "upload_time_iso_8601": "2023-10-28T12:00:34.211021Z",
            "url": "https://files.pythonhosted.org/packages/5e/1c/01cde6a722dc6c1f0e841b98b8f037471897fa1b47c77b03d25e5b3b65a3/nazo_rand-0.1.0-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e25c70caf00c4695ef6fbcc3b4027231cc3d30f81074d9ddb45b0fd5ed126e1",
                "md5": "3b4e6388a4f02769436c3ed6ed138f8e",
                "sha256": "99346326d4f93042464c3029f2cf48f056ad93d56aab6d7b5ac789323ba365ea"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp38-cp38-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "3b4e6388a4f02769436c3ed6ed138f8e",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 90406,
            "upload_time": "2023-10-28T12:00:35",
            "upload_time_iso_8601": "2023-10-28T12:00:35.807073Z",
            "url": "https://files.pythonhosted.org/packages/0e/25/c70caf00c4695ef6fbcc3b4027231cc3d30f81074d9ddb45b0fd5ed126e1/nazo_rand-0.1.0-cp38-cp38-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b9c902e4873df7991c2abb006a9326e4fe0b4f0b987d9a5908cfe59d67a599d",
                "md5": "904707a6592356b9f01f4922a5f3ef67",
                "sha256": "8f5c57ff05b6789e2a1c9dbe38118aafb49b72e50b29b022f67b2bf4e8d4cdf3"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "904707a6592356b9f01f4922a5f3ef67",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 255144,
            "upload_time": "2023-10-28T12:00:37",
            "upload_time_iso_8601": "2023-10-28T12:00:37.407472Z",
            "url": "https://files.pythonhosted.org/packages/7b/9c/902e4873df7991c2abb006a9326e4fe0b4f0b987d9a5908cfe59d67a599d/nazo_rand-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "150e62b77b6611ee195487536e27aa0051115c34dc71f4d5de641d3b2f55b407",
                "md5": "d6265ddb5d69b7b7bfa95f9ca2888332",
                "sha256": "adbe573e79fcf5610e9f0835ca56a9add06bac5209ba74b150b0c8a06aef5774"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d6265ddb5d69b7b7bfa95f9ca2888332",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 90251,
            "upload_time": "2023-10-28T12:00:39",
            "upload_time_iso_8601": "2023-10-28T12:00:39.243474Z",
            "url": "https://files.pythonhosted.org/packages/15/0e/62b77b6611ee195487536e27aa0051115c34dc71f4d5de641d3b2f55b407/nazo_rand-0.1.0-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5342c04d1988435d093e24c2c2254eb6c3dc42709fd5ea2203a819ecefb7ea1",
                "md5": "a5cb725227944f4d1faa2d6eb92c6835",
                "sha256": "ff2a7dab72ae03ec972ff2740841c69ec0c99b2cceb0d58c2931b9cf371d4a9c"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp39-cp39-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a5cb725227944f4d1faa2d6eb92c6835",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 90334,
            "upload_time": "2023-10-28T12:00:40",
            "upload_time_iso_8601": "2023-10-28T12:00:40.484770Z",
            "url": "https://files.pythonhosted.org/packages/e5/34/2c04d1988435d093e24c2c2254eb6c3dc42709fd5ea2203a819ecefb7ea1/nazo_rand-0.1.0-cp39-cp39-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b8eca3026b7f67aba2cf9b01ef9f5c09169b32f40b55a43780a3416cbe162ba8",
                "md5": "878f2ab5325f90c77974eac010698858",
                "sha256": "a35d113e4d101db7104b05c95211639dbb30c580521101464588ba0e07975224"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "878f2ab5325f90c77974eac010698858",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 256284,
            "upload_time": "2023-10-28T12:00:41",
            "upload_time_iso_8601": "2023-10-28T12:00:41.714923Z",
            "url": "https://files.pythonhosted.org/packages/b8/ec/a3026b7f67aba2cf9b01ef9f5c09169b32f40b55a43780a3416cbe162ba8/nazo_rand-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a32a2cc65d918eb8e60c9513e89f9e1a2ce7c6571ad01cfbc1d754b7b3cb58c6",
                "md5": "1e4f6f725ac4d4d9d103abbd5806363e",
                "sha256": "8aa5af359839adca54fdd06415a2aa982c6d651abdc217c2a6dd5961ce5e91f3"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "1e4f6f725ac4d4d9d103abbd5806363e",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 90179,
            "upload_time": "2023-10-28T12:00:42",
            "upload_time_iso_8601": "2023-10-28T12:00:42.932623Z",
            "url": "https://files.pythonhosted.org/packages/a3/2a/2cc65d918eb8e60c9513e89f9e1a2ce7c6571ad01cfbc1d754b7b3cb58c6/nazo_rand-0.1.0-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c8fd36eef7e8ebbd0cc63c36ce706d9fb3cbe390b09859580175df3dd62af378",
                "md5": "c3e872757b64842b5808a2bc959ebd16",
                "sha256": "eae34259d98a041e2fca9535437c2aeaa1ded7060cb03344a4964b4d40be8cfc"
            },
            "downloads": -1,
            "filename": "nazo_rand-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c3e872757b64842b5808a2bc959ebd16",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 64048,
            "upload_time": "2023-10-28T12:00:44",
            "upload_time_iso_8601": "2023-10-28T12:00:44.130912Z",
            "url": "https://files.pythonhosted.org/packages/c8/fd/36eef7e8ebbd0cc63c36ce706d9fb3cbe390b09859580175df3dd62af378/nazo_rand-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-28 12:00:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nazo-rand"
}
        
Elapsed time: 0.20220s