github.com/rsc/tmp@v0.0.0-20240517235954-6deaab19748b/randdist/graph/x.html (about)

     1  <base href="http://localhost:8000/">
     2  <h1>Graph of Pr(rand.Float64() < x) for various implementations</h1>
     3  <p>Russ Cox, January 2016</p>
     4  <p>&nbsp;
     5  <p>The blue line is ideal, Pr(rand.Float64() < x) = x. The red line is the analytically exact probability.
     6  <p>Make your browser wide enough to see four graphs across.
     7  Then the four columns show behavior very close to zero (scale 1/2^63), somewhat zoomed out from zero (scale 1/2^53), centered on 0.5 (scale 1/2^53), and close to one (scale 1/2^53).
     8  <p>Computed with <a href="https://rsc.io/tmp/randdist">rsc.io/tmp/randdist</a>.
     9  
    10  <h2>Go 1.1 behavior</h2>
    11  <img src="/graph?mode=0&x=3">
    12  <img src="/graph?mode=0&x=2">
    13  <img src="/graph?mode=0&x=0">
    14  <img src="/graph?mode=0&x=1">
    15  
    16  <h2>Go 1.5 behavior</h2>
    17  <img src="/graph?mode=1&x=3">
    18  <img src="/graph?mode=1&x=2">
    19  <img src="/graph?mode=1&x=0">
    20  <img src="/graph?mode=1&x=1">
    21  
    22  <h2>Go 1.6 behavior</h2>
    23  <img src="/graph?mode=2&x=3">
    24  <img src="/graph?mode=2&x=2">
    25  <img src="/graph?mode=2&x=0">
    26  <img src="/graph?mode=2&x=1">