# Daniel Lemire's blog lemire.me

 Post (required) * Required; the Post you're subscribing to. — All Comments/Replies — Feb 28th, 2017 10:35 pm — "fuz" writes: The POSIX drand48() function returns a f[...] Mar 1st, 2017 12:23 am — "Daniel Lemire" writes: If hitting exactly zero is much less pro[...] Mar 1st, 2017 3:05 am — "Arseny Kapoulkine" writes: I believe the notion of a uniform distri[...] Mar 1st, 2017 3:51 pm — "Severin Pappadeux" writes: Did you read http://xoroshiro.di.unimi.i[...] Mar 1st, 2017 4:00 pm — "Daniel Lemire" writes: No, but it looks like an interesting ref[...] Mar 1st, 2017 5:37 pm — "Severin Pappadeux" writes: Any method which populate [1,2) and then[...] Mar 1st, 2017 6:15 pm — "Josh" writes: “meaning that for every integer in [0,[...] Mar 1st, 2017 9:26 pm — "Andrew" writes: If choosing a value in [0-e, 0+e] is as [...] Mar 1st, 2017 11:40 pm — "Andrew Dalke" writes: I used nextafterf() to count the number [...] Mar 2nd, 2017 3:07 am — "Mike A" writes: One reason the count could be wrong is t[...] Mar 2nd, 2017 3:17 am — "Daniel Lemire" writes: The correct calculation should have been[...] Mar 2nd, 2017 9:22 am — "Sebastiano Vigna" writes: Actually, you did! It’s the code linke[...] Mar 2nd, 2017 9:59 am — "Sebastiano Vigna" writes: That’s entirely false. Try static inli[...] Mar 2nd, 2017 5:34 pm — "J.S. Nelson" writes: That’s an interesting distinction to m[...] Mar 2nd, 2017 11:59 pm — "Ted Dunning" writes: My guess is that the extra floating poin[...] Aug 17th, 2017 9:00 am — "Anomaly UK" writes: What’s the mean of all the floating-po[...] Dec 30th, 2017 2:49 am — "Daniel Lemire" writes: That’s correct. The mean is 0.0119 as [...] May 20th, 2018 2:35 pm — "Sean O'Connor" writes: For a true uniform number (32 bit float)[...] May 20th, 2018 2:38 pm — "Sean O'Connor" writes: I meant to mention about a different num[...] Feb 21st, 2021 4:06 am — "Tamas Varhegyi" writes: Actually there are an unlimited number o[...] Sep 10th, 2021 4:23 pm — "Guest" writes: The approaches that use division (which [...] Sep 10th, 2021 5:08 pm — "Daniel Lemire" writes: A bit-by-bit approach is unlikely to be [...] Sep 10th, 2021 6:58 pm — "Guest" writes: Hello! But it’s bit-by-bit only in con[...] instantly hourly daily weekly Any value that is not `instantly` results in a digest instead of instant notifications.