From a collection of objects numbered $\{1,2,....,K\}$ objects are picked and replaced. We want to test ${H}_{0}:K=100000$ against ${H}_{1}<100000$, with the highest ranking number $M$ of our sample as test statistic. We find for our realisation for $M$ the value $81115$.

What is the $P$ value?

The correct answer is: $0.015$

I know that the definition of the $p$-value is:

The p-value is the probability of getting the observed value of the test static or a value with even greater evidence against ${H}_{0}$, if the hypothesis is actually true

or in formula form $P(T\ge t)$

I have the following questions:

What are $T$ and $t$?

I think that distribution is uniform, but how do I calculate the $p$-value?

What is the $P$ value?

The correct answer is: $0.015$

I know that the definition of the $p$-value is:

The p-value is the probability of getting the observed value of the test static or a value with even greater evidence against ${H}_{0}$, if the hypothesis is actually true

or in formula form $P(T\ge t)$

I have the following questions:

What are $T$ and $t$?

I think that distribution is uniform, but how do I calculate the $p$-value?