title: Given a list of numbers predict the next in sequence
body: <p>I'm using PHP, I have a list of numbers with a min of 1 and a max of 10:</p>
  
  <p>1,2,4,10,4,3,1,6,9,8,2,10,5,6,7,3,1...</p>
  
  <p>Is there a way to find the next logic number in the sequence (or at least the possible number/s)?</p>
  
  <p>I think I can loop thru the array and find the one that came up least, but I'm not sure it will be working.</p>