Announcement

Collapse
No announcement yet.

Quantum Random Numbers from Web discussion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quantum Random Numbers from Web discussion

    Reference is made to Stuart's source code posting https://forum.powerbasic.com/forum/u...599#post816599

    There is a major drawback in this codes as it needs an internet connection and the
    ability to access the following website :

    https://qrng.anu.edu.au

    What happens if these facilities are not available?

  • #2
    Well, then you'll have to resort to generating the numbers locally and they probably won't be as good as the much more sophisticated method used at that site. But, done correctly, I doubt anybody will know the difference.

    Comment


    • #3
      I would have thought that goes without saying since the Thread header says "from Web"

      As Conrad says, if it fails, you would call another function that returns a "less random" value.
      That's exactly what the first post in that thread does:
      Code:
          TRY 'Get quantum randoms
              ...
               FUNCTION = 1
          CATCH ' use RND()
              RANDOMIZE
              FOR x = 1 TO 51
                  rnds(x) = RND(x,52)
              NEXT
              FUNCTION = 2
          END TRY

      Comment


      • #4
        Originally posted by Anne Wilson View Post
        What happens if these facilities are not available?
        I guess build a vacuum chamber and the necessary parts to measure electromagnetic field fluctuations and ship it with each product

        Comment


        • #5
          You could download a bunch in advance from the website...

          Comment


          • #6
            Originally posted by David Clarke View Post
            You could download a bunch in advance from the website...
            Yep, use that site to create a "one time pad" periodically and use that for your randoms.

            Comment

            Working...
            X