nbdev-hello-world
================
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
This is a simple dice throwing class that uses [NumPy
default_rng](https://numpy.org/doc/stable/reference/random/generator.html)
to build an array of random integers depending upon the number of sides
on the dice and the number of dice thrown.
## Install
``` sh
pip install nbdev-hello-dice
```
## How to use
Here, we throw 1 die with 6 sides:
``` python
result = throw(6)
result
```
1 = sum([1])
Next, we can throw $\times 2$ dice and look at the sum
``` python
throw(6, 2)
```
3 = sum([1 2])
The dice values are stored in an array, as `throw(N, inhand).dice` as
such
``` python
result = throw(6, 4)
result.dice
```
array([2, 1, 4, 6])
The `sum` of the dice values are saved in `throw.(N, inhand).sum` as
such
``` python
result.sum
```
13
Raw data
{
"_id": null,
"home_page": "https://github.com/cooperrc/nbdev-hello-world",
"name": "nbdev-hello-dice",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "nbdev jupyter notebook python",
"author": "Ryan C. Cooper",
"author_email": "ryan.c.cooper@uconn.edu",
"download_url": "https://files.pythonhosted.org/packages/4a/65/5eeed8d0f7d80feb06784a5adff1c7722ab0c4f151c4a6353f53157b3b0e/nbdev-hello-dice-0.0.2.tar.gz",
"platform": null,
"description": "nbdev-hello-world\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nThis is a simple dice throwing class that uses [NumPy\ndefault_rng](https://numpy.org/doc/stable/reference/random/generator.html)\nto build an array of random integers depending upon the number of sides\non the dice and the number of dice thrown.\n\n## Install\n\n``` sh\npip install nbdev-hello-dice\n```\n\n## How to use\n\nHere, we throw 1 die with 6 sides:\n\n``` python\nresult = throw(6)\nresult\n```\n\n 1 = sum([1])\n\nNext, we can throw $\\times 2$ dice and look at the sum\n\n``` python\nthrow(6, 2)\n```\n\n 3 = sum([1 2])\n\nThe dice values are stored in an array, as `throw(N, inhand).dice` as\nsuch\n\n``` python\nresult = throw(6, 4)\nresult.dice\n```\n\n array([2, 1, 4, 6])\n\nThe `sum` of the dice values are saved in `throw.(N, inhand).sum` as\nsuch\n\n``` python\nresult.sum\n```\n\n 13\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "Hello Worlddice throwing setup process for nbdev",
"version": "0.0.2",
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "9caeeb38f23e4d59d46aea3f6fa4de61",
"sha256": "944b6bd026c0e551f4d58beb4823c1ab8f338a871111e53370fec002a5733c45"
},
"downloads": -1,
"filename": "nbdev_hello_dice-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9caeeb38f23e4d59d46aea3f6fa4de61",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7728,
"upload_time": "2022-12-16T16:32:45",
"upload_time_iso_8601": "2022-12-16T16:32:45.399371Z",
"url": "https://files.pythonhosted.org/packages/6a/55/0aebe2d523c1107f60d7c4c785f117558bb7debf9333b3be1733fda4d615/nbdev_hello_dice-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "168a3cde4339d53a232258ae1553f8ab",
"sha256": "3a2943ce3ff0846abe5a95ae6411cb538314187b755cce185ca98dd31ec91fe8"
},
"downloads": -1,
"filename": "nbdev-hello-dice-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "168a3cde4339d53a232258ae1553f8ab",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7842,
"upload_time": "2022-12-16T16:32:46",
"upload_time_iso_8601": "2022-12-16T16:32:46.999423Z",
"url": "https://files.pythonhosted.org/packages/4a/65/5eeed8d0f7d80feb06784a5adff1c7722ab0c4f151c4a6353f53157b3b0e/nbdev-hello-dice-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-16 16:32:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "cooperrc",
"github_project": "nbdev-hello-world",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nbdev-hello-dice"
}