Skip to content

implements von Neumann's middle-square method for generating 'pseudorandom' numbers

Notifications You must be signed in to change notification settings

naddleman/middle-squares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

middle-squares

implements von Neumann's middle-square method for generating 'pseudorandom' numbers

Essentially, take an l-digit number n, square it, and take the 'middle' l digits of the square.

Usage: middle-squares <initial integer> <length of output list>

About

implements von Neumann's middle-square method for generating 'pseudorandom' numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages