Avoid generating NaNs.  Fixes #7779.

svn path=/trunk/boost/random/; revision=82936