title: how to split a number into several numbers randomly in ruby?
body: <p>how to split  a number into several numbers randomly ?</p>
  
  <p>eg:i have a number 30, i want to split it into several numbers randomly,the size of every number is between 3-10,and the size of every number are different from each other</p>
  
  <p>the result maybe like :[5,7,9,6,3],[9,10,3,8],...etc</p>
  
  <p>I have tried,but I can't solve it,please give me help.</p>