An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# godice
[![Build Status](https://travis-ci.org/WindomZ/godice.svg?branch=master)](https://travis-ci.org/WindomZ/godice)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Coverage Status](https://coveralls.io/repos/github/WindomZ/godice/badge.svg?branch=dev)](https://coveralls.io/github/WindomZ/godice?branch=dev)

Simple API such as roll the dice for Golang.

![v0.4.1](https://img.shields.io/badge/version-v0.4.1-yellow.svg)
![status](https://img.shields.io/badge/status-beta-yellow.svg)

## 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)