| 1 |
# rand_core: core random number generation traits |
| 2 |
|
| 3 |
<div class="badges"> |
| 4 |
|
| 5 |
[![crate][crate-badge]][crate-link] |
| 6 |
[![Docs][docs-image]][docs-link] |
| 7 |
[![Apache2/MIT licensed][license-image]][license-link] |
| 8 |
[![Build Status][build-image]][build-link] |
| 9 |
|
| 10 |
</div> |
| 11 |
|
| 12 |
This crate provides a collection of traits used by implementations of Random Number Generation (RNG) |
| 13 |
algorithms. Additionally, it includes helper utilities that assist with the implementation |
| 14 |
of these traits. |
| 15 |
|
| 16 |
Note that the traits focus solely on the core RNG functionality. Most users should prefer |
| 17 |
the [`rand`] crate, which offers more advanced RNG capabilities built on these core traits, |
| 18 |
such as sampling from restricted ranges, generating floating-point numbers, list permutations, |
| 19 |
and more. |
| 20 |
|
| 21 |
[`rand`]: https://docs.rs/rand |
| 22 |
|
| 23 |
## License |
| 24 |
|
| 25 |
The crate is licensed under either of: |
| 26 |
|
| 27 |
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
| 28 |
* [MIT license](http://opensource.org/licenses/MIT) |
| 29 |
|
| 30 |
at your option. |
| 31 |
|
| 32 |
[//]: # (badges) |
| 33 |
|
| 34 |
[crate-badge]: https://img.shields.io/crates/v/rand_core.svg |
| 35 |
[crate-link]: https://crates.io/crates/rand_core |
| 36 |
[docs-image]: https://docs.rs/rand_core/badge.svg |
| 37 |
[docs-link]: https://docs.rs/rand_core |
| 38 |
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg |
| 39 |
[build-image]: https://github.com/rust-random/rand_core/actions/workflows/test.yml/badge.svg?branch=master |
| 40 |
[license-link]: #license |
| 41 |
[build-link]: https://github.com/rust-random/rand_core/actions/workflows/test.yml?query=branch:master |