Talk:Middle-square method

This article contains broken links to one or more target anchors:

Talk:Middle-square method

136*136

C++ code

Anyone who knows enough C++ to understand that code probably doesn't need it to be here. In any case, I don't think it is Wikipedia's place to provide code samples -- it is an encyclopedia. It would be better if how it worked was actually explained clearly, rather than via code, in my opinion. --Fastfission 04:40, 5 May 2006 (UTC)Reply

And I think the code provided is incorrect. It returns a uint32, x = (x>>32) | (x<<32); but x is a uint64. Sliding it right 16 would be a start toward getting it right Friendly Person (talk) 22:13, 4 December 2019 (UTC)Reply

Reference

Where does 1946 come from? Some cite J. von Neumann: Various techniques used in connection with random digits. Monte Carlo methods. Nat. Bur. of Stand., Appl. Math. Ser. 12, 1951. Has anyone access to this article? —Preceding unsigned comment added by 139.18.75.122 (talk) 11:38, 1 June 2010 (UTC)Reply

... I found a short hint on "about 1946" in D.E. Knuth's book "The Art of Computer Programming", vol. 2 (3. ed.) in section 3.1, page 3. A primary source would be necessary anyway.

I've seen the article; I don't think he mentions 1946 in it, but I don't have it in front of me, just notes. I've added a little bit. I don't know if 1946 was the first time he used it, it would be interesting to know for sure. I can date him describing it in 1949, which is at least pretty concrete. --Fastfission (talk) 23:10, 16 August 2010 (UTC)Reply
I ran across the article again. He doesn't mention 1946 in the 1949 article. --Fastfission (talk) 20:36, 23 June 2011 (UTC)Reply

Middle Square Weyl Sequence PRNG

This section reads like it was written by the publisher of the RNG himself. Have been unable to find independent evaluations thereof. --41.169.80.41 (talk) 14:34, 18 March 2021 (UTC)Reply

Use "Tortoise and the Hare" instead of an array for finding loops !

The Example code would use memory for every possible number. this limits the test to small numbers. Use The Tortoise and the Hare algorithm instead. You can test it for integers of any size with that. 91.56.201.135 (talk) 20:20, 30 December 2021 (UTC)Reply

Ekeland, Borges, Brother Edvin

Can anyone provide evidence, independent of Ivar Ekeland's telling of the story in The Broken Dice, supporting the claim that the middle-square method was invented in the 13th century by a Norwegian monk named Brother Edvin? The claim is quite extraordinary. If it's true, it represents a landmark in the history of randomness as well as an important data point in the spread of decimal numeration in medieval Europe. But I have been unable to find any mention of Brother Edvin or his algorithm that does not derive directly from Ekeland's work.

In the absence of corroborating evidence, I can't help wondering if Brother Edvin is an elaborate joke. BetaPiEta (talk) 15:22, 23 June 2022 (UTC)Reply

9999

99999 116.110.0.66 (talk) 15:56, 23 September 2022 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.