Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
What’s a good algorithm for a 2D array of pseudorandom numbers, such that each entry can be generated from two adjacent numbers in the same row or column?
Post Body

So for example, you could reconstruct the entire array given an initial “seed” of four entries in a square. (By “pseudorandom” I mean having no obvious statistical correlation, and ideally the period would be fairly long.)

[Edit] Or to put it another way—you’d need four algorithms for generating new numbers while moving up, down, left, or right, such that the value generated for any cell is the same regardless of the path used to reach it.

Also, is there a way to generalize it to an n-dimensional array whose entries are determined by m adjacent entries?

Author
Account Strength
100%
Account Age
18 years
Verified Email
Yes
Verified Flair
No
Total Karma
313,973
Link Karma
65,427
Comment Karma
246,756
Profile updated: 4 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago