| 1 | # Random [![Version][version-img]][version-url] [![Status][status-img]][status-url] |
| 2 | |
| 3 | The packages provides sources of randomness. |
| 4 | |
| 5 | ## [Documentation][documentation] |
| 6 | |
| 7 | ## Example |
| 8 | |
| 9 | ```rust |
| 10 | use random::Source; |
| 11 | |
| 12 | let mut source = random::default().seed([42, 69]); |
| 13 | println!("Scalar: {:?}", source.read::<f64>()); |
| 14 | println!("Vector: {:?}", source.iter().take(2).collect::<Vec<f64>>()); |
| 15 | ``` |
| 16 | |
| 17 | ## Contribution |
| 18 | |
| 19 | Your contribution is highly appreciated. Do not hesitate to open an issue or a |
| 20 | pull request. Note that any contribution submitted for inclusion in the project |
| 21 | will be licensed according to the terms given in [LICENSE.md](LICENSE.md). |
| 22 | |
| 23 | [documentation]: https://docs.rs/random |
| 24 | [status-img]: https://travis-ci.org/stainless-steel/random.svg?branch=master |
| 25 | [status-url]: https://travis-ci.org/stainless-steel/random |
| 26 | [version-img]: https://img.shields.io/crates/v/random.svg |
| 27 | [version-url]: https://crates.io/crates/random |