title: How to find all unique values of arrays of integers where the array length and maximum integer value are set
body: <p>I am trying to write a function which generates all unique combinations of arrays for values up to a certain number.</p>
  
  <p>The function has two parameters, one parameter is the length of the array and the other is the maximum size of the integer.</p>
  
  <p><code>F(4, 3)</code> is a function that will generate all possible unique combinations of positive integers less than or equal to 4 in a three integer array. <code>F(10, 100)</code> will generate all possible unique combinations of positive integers less than or equal to 10 in a 100 integer array.</p>
  
  <p>The result for <code>F(4, 3)</code> would start like this:</p>
  
  <p><code>(1, 1, 1), (1, 1, 2), (1, 1, 3), (1, 1, 4), (1, 2, 1), (1, 2, 2) ... (4, 4, 4)</code></p>
  
  <p><code>F(10, 10)</code> would start like this:</p>
  
  <p><code>(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1, 1, 2), ... 
   (10, 10, 10, 10, 10, 10, 10, 10, 10, 10)</code></p>