generates random l curves