private float AssignBW(float bwmin, float bwmax, BWAssginType type) 
	{
		if (bwmax < 0 || 
			bwmin < 0 ||
			bwmax < bwmin)
			throw new RuntimeException("bwmax bwmin must be greater than 1");
		
		Random BWRandom = new Random(System.currentTimeMillis());
		float bw;
		
		if (type == BWAssginType.CONSTANT)
		{
			bw =  bwmin;
		} 
		else if (type == BWAssginType.UNIFORM) 
		{
			
			bw = (bwmin + bwmax * Distribution.getUniformRandom(BWRandom));
		} 
		else if (type == BWAssginType.HEAVYTAILED) 
		{
			bw = (Distribution.getParetoRandom(BWRandom, bwmin, bwmax, 1.2));
		} 
		else if (type == BWAssginType.EXPONENTIAL) 
		{
			bw = (Distribution.getExponentialRandom(BWRandom, bwmin));
		} 
		else 
		{ // default case
			bw = -1;
		}
		
		return bw;
	}