Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elichai/random-rs
A trait for random number generation
https://github.com/elichai/random-rs
Last synced: 19 days ago
JSON representation
A trait for random number generation
- Host: GitHub
- URL: https://github.com/elichai/random-rs
- Owner: elichai
- License: apache-2.0
- Created: 2019-08-26T01:25:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T17:05:18.000Z (about 5 years ago)
- Last Synced: 2024-10-09T22:11:09.372Z (about 1 month ago)
- Language: Rust
- Size: 62.5 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# random-rs
[![Build Status](https://travis-ci.org/elichai/random-rs.svg?branch=master)](https://travis-ci.org/elichai/random-rs)
[![Build Status](https://ci.appveyor.com/api/projects/status/j6lo8inj8qp0xxgu?svg=true)](https://ci.appveyor.com/project/elichai/random-rs)This repository is highly inspired by the [rand](http://crates.io/crates/rand) crate.
But it plans to give something a bit different. this is meant to give a very minimalistic random generation with as little crates + code as possible.
And keep backwards compatibily for as long as possible.## Rust version requirements
`random-rs` is currently tested against rust 1.13.0. it might also support older compilers, but no promises.
The plan is to keep supporting 1.13 as long as possible, in a case where a bump will be needed it will be accompanied by a major version bump.## Crates
| name | version | purpose | algorithm |
|------------------------------------------------------|---------|------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [random-trait](http://crates.io/crates/random-trait) | [![Latest version](https://img.shields.io/crates/v/random-trait.svg)](https://crates.io/crates/random-trait) | The main trait, let's you randomly generate generic types | The only part that requires a specific algorithm here is the floating points, using https://mumble.net/~campbell/2014/04/28/uniform-random-float |
| [random-fast-rng](https://crates.io/crates/random-fast-rng) | [![Latest version](https://img.shields.io/crates/v/random-fast-rng.svg)](https://crates.io/crates/random-fast-rng) | Blazing fast **non cryptographic** random number generator | Uses Pcg32 and seeds it from system time |