In this experiment. the number n of observations in the sample is not fixed beforehand. it is a random variable whose value may very well depend on the magnitudes of the observations as they are obtained.
Regardless of whether experimenter decides an to fix the value of n before any observations are taken or prefers to use some other sampling plan. such as the one just described. it can be shown that the likelihood function L based on the observed values can be taken to be