Floaters
Create floating-point numbers pseudorandomly in several experimental ways. Not only the significand may be filled with pseudorandom bits, but also at least parts of the exponent, depending on the chosen method. If the exponent contains pseudorandom bits, the numbers will not be uniformly distributed. Those methods may be useful in some cases where you need a wider range of numbers, while equidistribution is not a priority. The sign bit may be pseudorandom as well, depending on the method.
The crate adds a trait for any type that implements Rng from rand_core.
For convenience, rand_xoshiro is re-exported.
In addition, the SeedStr trait allows you to create a seed for PRNGs from the xoshiro family by iterating over bytes from a string slice.
Version 0.3.0 comes with an almost complete redesign. Earlier versions contained re-implementations of Xorshift128+ and Xoroshiro256++.
Usage
Add the following to your Cargo.toml:
[]
= "0.3.0"
Examples
use SeedableRng;
use ;