<div dir="ltr">on Thu, 11 Jan 2018 00:02:18 +0100 Jens Persson &lt;<a href="mailto:jens@bitcycle.com">jens@bitcycle.com</a>&gt; wrote:<div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
If there should be an API to produce a random Double without parameters<br>
then IMHO it should simply be a uniformly distributed Double in the unit<br>
range [0, 1). Very useful as a basic building block...</blockquote><div><br></div><div>[0..1) sounds reasonable. even if disregard +/- zeroes, infinities, NAN&#39;s, etc., uniform distribution between Double.min ... Double.max makes little sense.</div><div><br></div><div>and it shall be relatively easy to bit cast UInt64 to Double for those who want to test various double patterns (e.g. for testing).</div><div><br></div><div>Mike<br></div><div><br></div></div></div></div></div>