I am sorry but you have totally lost me. By drip drip feeding information, and not coming clean about what and why you asked this question none for the above code makes any sense to me.
You started off by asking a simple question about array filling which I answered in post #5. Then it seems that you threw in all sorts of curved balls, with lines of code that would not work because you tried to combine the generation of the numbers in the array, with functions that uses those same numbers in an array.
You then continue to bombard the thread with all sorts of nonsense, about pointers and addresses, and wanting the code to be as fast as possible. The way you should go about a project is to get it working and only then do some optimization IF you find it runs slower than you want / need.
Another drip, of information not previously given.
I think this comment sums up your total thread. I guess this is just a classic case of the XY problem - Wikipedia
What happens in this case if you do not resolve it, and keep on ignoring things from all who try and help you, is that volunteers here, stop replying to you. I am very close to bailing out myself.