package genral;

import java.util.ArrayList;
import java.util.List;

public class Shuffle {


  
  public static List<Integer> shuffle(Integer start, Integer count) {
    
    List<Integer> items =  new ArrayList<Integer>(count);
    List<Integer> shuffledItems =  new ArrayList<Integer>(count);
    
    for (int i = 0 ; i < count ; i ++ ) {
      items.add(start + i);
    }
    
    while (items.size() > 0) {
      shuffledItems.add(items.remove((int)(10000 * Math.random()) % items.size()));
    }
    
    return shuffledItems;
  }
  
 }