Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zabawaba99/random
An automatically seeded Rand utility
https://github.com/zabawaba99/random
Last synced: 1 day ago
JSON representation
An automatically seeded Rand utility
- Host: GitHub
- URL: https://github.com/zabawaba99/random
- Owner: zabawaba99
- License: mit
- Created: 2015-03-27T05:00:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T14:22:47.000Z (about 6 years ago)
- Last Synced: 2024-06-20T15:48:06.231Z (5 months ago)
- Language: Go
- Size: 152 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random [![Build Status](https://travis-ci.org/zabawaba99/random.svg?branch=master)](https://travis-ci.org/zabawaba99/random) [![Coverage Status](https://coveralls.io/repos/zabawaba99/random/badge.svg?branch=master)](https://coveralls.io/r/zabawaba99/random?branch=master)
---
A Rand utility that wraps `math/rand`
## Installation
```bash
go get -u github.com/zabawaba99/random
```## Usage
Import the package
```go
import "github.com/zabawaba99/random"
```By importing the package, the package will be
seeded with `time.Now().Unix()`. You can also specify a seed
by setting the `GOSEED` environment variable.```go
GOSEED=12 go test .
```
---This package exports all the functions that [math/rand#Rand](http://godoc.org/math/rand#Rand)
exports.Check the [GoDocs](http://godoc.org/github.com/zabawaba99/random) for more details
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b new-feature`)
3. Commit your changes (`git commit -am 'Some cool reflection'`)
4. Push to the branch (`git push origin new-feature`)
5. Create new Pull Request