News for hackers. Stuff that matters.
Re:There's Math.random(), and then there's Math.random() (2015) by smegsicle on Wednesday November 08, 2023 @01:14PM (#38194486)
i for one expect my random floating point numbers to have the same distribution as a random bitfield interpreted as a float, and anything else should be considered a bug
Re:There's Math.random(), and then there's Math.random() (2015) by fanf2 on Wednesday November 08, 2023 @01:20PM (#38194600)
I don’t think that would be very useful, because there would be a 1/2048 chance of getting a NaN, and it would be difficult to convert the numbers to a known distribution.