title: Generate All possible combinations of Array
body: <p>I have 2 integers, i would like to create a list of arrarys using both of these like so:</p>
  <p>Int1 = 3
  Int2 = 4</p>
  <p>Array1(4,4,4)
  Array2(4,4,3)
  Array3(4,4,2)
  Array4(4,4,1)
  Array5(4,4,0)
  Array6(4,3,4)
  ...
  Arrayn(0,0,0)</p>
  <p>is there an efficient way of doing this? I'm essentially generating all possible combinations of length x using y number of items.</p>
  <p>I'm using python, but happy to use other methods!</p>