public static int randomSlot(int slot,int max,int min){
		max = max+1;
		if(slot==0){
			return (int)(Math.random()*(max-min));
		}
		int randomMax = (slot*(slot+1))/2;
		int rand = (int)(Math.random()*randomMax);
		int check = 0;
		int i=0;
		for(i=1;i<=slot;i++){
			check+=i;
			if(check>rand){
				break;
			}
		}
		if(i>slot){
			System.out.println("bug");
		}
		i-=1;
		int randrange = (max-min) / slot;
		int randrange2 = randrange;
		if(i==slot){
			randrange2 = max - (max-min) / slot * (slot-1);
		}
		return  (int)(Math.random()*randrange2) + randrange * i + min;
	}