Crate floaters

Source
Expand description

Generate f32 and f64 floating-point numbers pseudorandomly in various mostly experimental ways. Use some pseudorandom bits for the sign bit and/or for exponent bits as well. That way, the number of wasted precious pseudorandom bits is reduced. The values may be (roughly) evenly or unevenly distributed, depending on the chosen method.

Modules§

utilities
Contains helper functions that simulate the output or show minimum and maximum values of some methods in the NonCanonical trait. The functions may help you to find the right parameters for various methods.

Enums§

Sign
Return either signed or unsigned values.

Traits§

NonCanonical
A trait containing methods that generate floating point numbers out of pseudorandom u64 integers in several experimental ways.