On Tue, Apr 10, 2018 at 8:24 AM, Adam Mackler <adammack...@gmail.com> wrote:
>
> Maybe I'm missing something, but it seems to me that since a Double is
> represented using 64 bits and an Int 32, that using the amount of
> randomness in an Int to generate a random Double will mean that the results
> will be unevenly distributed, perhaps with possible values of the Double
> never returned.
>


I agree with your analysis. Generating Doubles from a single Int is no a
good real world strategy.  I guess it was just posed as an exercise.

-Ben

> --
> You received this message because you are subscribed to the Google Groups
> "scala-functional" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scala-functional+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-functional" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scala-functional+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to