Real domain for swb2712 RNG

3 views (last 30 days)
Frederic Goualard
Frederic Goualard on 1 Dec 2021
The documentation for the swb2712 RNG states that it "works natively in double precision to create U(0,1) values, and all values in the open interval (0, 1) are possible".
As far as I understand it, it is the algorithm described by Moler in https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/moler/random.pdf wherein he writes that it generates all possible floats in [2^-53,1-2^-53].
Am I mistaken in assuming that Moler is describing swb2712 in the PDF file linked or is there an error in the documentation?
  2 Comments
Steven Lord
Steven Lord on 6 Dec 2021
wherein he writes that it generates all possible floats in .
Where do you see that stated in random.pdf? I looked for all instances of the word "all" and none of them I interpreted as meaning what you said he wrote.
Frederic Goualard
Frederic Goualard on 6 Dec 2021
On page 4, penultimate sentence of the second paragraph, it says: "It is now theoretically possible to generate all the floating-point numbers between 2^{-53} and 1-2^{-53}." What is your understanding of that sentence?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!