Skip to content

JavaScript demo of the von Neumann middle-square algorithm for generating pseudo-random numbers

License

Notifications You must be signed in to change notification settings

bit-player/midsquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Middle Square Algorithm for Pseudorandom Numbers

The code in this repository accompanies the essay "The Middle of the Square," by Brian Hayes, published September 2022 at http://bit-player.org/2022/the-middle-of-the-square.

The program implements the pseudorandom number generator invented in the 1940s by John von Neumann, illustrating its principal failing: a short cycle length.

About

JavaScript demo of the von Neumann middle-square algorithm for generating pseudo-random numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published