Can we use magic squares as random number generators?

01032020, 09:48 PM
(This post was last modified: 01032020 09:49 PM by Namir.)
Post: #1




Can we use magic squares as random number generators?
Hi All,
I ran into magic squares (Matlab has a magic() built in function) and a curiosity light bulb went on in my bain, askin the following question: "Can we use (large) magic squares to generate random numbers?" I did a limit test (100 by 100 magic square matrix) and then manipulated the numbers: 1. Divide each element by the row/colum sum. 2. Discard the first few decimal digits using something like: x = 100*x  fix(100*x) = frac(100*x) I got 10,000 random numbers which may not be a whole lot of PC applications. Any better approach to generate (and regenerate) batches of random numbers from magic squares? Namir 

« Next Oldest  Next Newest »

Messages In This Thread 
Can we use magic squares as random number generators?  Namir  01032020 09:48 PM
RE: Can we use magic squares as random number generators?  aamiel  01062020, 09:14 AM
RE: Can we use magic squares as random number generators?  lrdheat  01062020, 03:24 PM
RE: Can we use magic squares as random number generators?  Namir  01072020, 01:07 PM

User(s) browsing this thread: 1 Guest(s)