added seaparate random ranges for height and width