First question: I am trying to generate random integers with random digits into an array. However, since boundary value of integer varies as 'int8', 'int16','int32', 'int64' and unsigned versions of them, I cannot decide which type I should use to generate my simple array as below. See: https://www.mathworks.com/help/matlab/ref/intmax.html
When I use randi(n, row, column) where n is the upper bound integer value, row is row number and column is column number. However, this does not satisfy my purpose of solving my problem. So, which form of "rand" function should I use?
A= [2 7 43 556 32 35 3 4566]
Second question: If I can achieve my purpose in the first question, how do I iterate over each number in the array? I want to check each number digit by digit and respectively. Like in the example array, it should first check 2, and 7, and 4 and 3, and 5, and so on.
Any help would be appreciated.