DEV Community

Discussion on: Pseudorandom numbers using Rule 30

Collapse
 
arpit_bhayani profile image
Arpit Bhayani

The pseudorandom number generated using this method does not pass the Chi-Square test for randomness; which means even though things seem aperiodic to us, for large number of iterations things are not that random; and hence should not be used in high-end security.

To answer your second question:
The number of rows and columns is kept fixed and this number count depends on the cells you want to analyze at once. For example: if we only want to generate random numbers then keeping track of just 2 rows is enough.

Since the size of the Grid is constant and the row "wraps around" at its ends; the center of the grid does not move.