https://github.com/windomz/godice
:game_die: Simple API such as roll the dice for Golang
https://github.com/windomz/godice
dice golang roll
Last synced: about 1 year ago
JSON representation
:game_die: Simple API such as roll the dice for Golang
- Host: GitHub
- URL: https://github.com/windomz/godice
- Owner: WindomZ
- License: mit
- Created: 2016-02-01T08:32:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T13:16:53.000Z (about 9 years ago)
- Last Synced: 2025-02-15T07:44:13.620Z (over 1 year ago)
- Topics: dice, golang, roll
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# godice
[](https://travis-ci.org/WindomZ/godice)
[](https://opensource.org/licenses/MIT)
[](https://coveralls.io/github/WindomZ/godice?branch=dev)
Simple API such as roll the dice for Golang.


## Features
### [dice](https://github.com/WindomZ/godice/tree/master/dice)
- [x] Such as roll the dice, get the *mode* result of the integer
- [x] Support `Increment`, `Random` and `Mixed` modes
- [x] Support return int, int8, int16, int32 and int64
### [roll](https://github.com/WindomZ/godice/tree/master/roll)
- [x] Such as a lucky drawer, get the *random* result
- [x] Support `Random` and `Balanced` mode
- [x] Support return string
- [ ] Support return int, int8, int16, int32 and int64
- [ ] Support return float32 and float64
## Installation
```
go get -u github.com/WindomZ/godice...
```
## License
The [MIT License](https://github.com/WindomZ/godice/blob/master/LICENSE)