random-trait 0.1.1

Rust library for a random trait meant to produce random generic types
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented2 out of 15 items with examples
  • Size
  • Source code size: 14.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.59 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • elichai

Random Trait

This crate provides a simple thin trait for producing generic random values based on any random source. The crates assurances are based on the assurances of the RNG it is implemented on. if that RNG is cryptographically secure then this crate should provide a cryptographically secure numbers. (including floats) if the RNG is biased (which is fine for tests and some other applications) then the results will also be bias. This crate does not try to compensate for biases in the RNG source.

please see the GenerateRand and Random for more information and examples.