-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
randomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlib
Description
The current implementation of samplers for eg Float23 and Float64 effectively generates numbers as n*eps(T), where n is an integer between 0 and 1/eps(T)-1 (inclusive). Eg for Float64 this range is 0:(2^52-1).
This makes the random draws (slightly) biased, by -eps(T)/2.
The proposal is to add this term back to the result in the implementation.
Cf this discussion, especially the proposal of @perrutquist
BeastyBlacksmith and drrmmng
Metadata
Metadata
Assignees
Labels
randomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlib