There seems to be a demand for a general float generator.
One of the bigger issues with a float generator is shrinking, which is not straightforward. intially considered including a small implementation, using fmap to coerce a ratio into a float:
The Haskell implementation is performing float shrinking through fractions.
implemented a bigdec generator using ideas from data.generators, but mentioned that manipulating the long and int bits would be more performant. However, such shrinking would require good knowledge on how IEEE 754 works, in order to avoid bugs whenever shrinking is performed.
A slower, but more understandable and portable double generator was also suggested, again by . The implementation of said generator could be found at https://gist.github.com/cemerick/7599452