Let $\{\xi _{1},\xi _{2},\dots \}$ be a sequence of independent random variables, and η be a counting random variable independent of this sequence. In addition, let $S_{0}:=0$ and $S_{n}:=\xi _{1}+\xi _{2}+\cdots +\xi _{n}$ for $n\geqslant 1$. We consider conditions for random variables $\{\xi _{1},\xi _{2},\dots \}$ and η under which the distribution functions of the random maximum $\xi _{(\eta )}:=\max \{0,\xi _{1},\xi _{2},\dots ,\xi _{\eta }\}$ and of the random maximum of sums $S_{(\eta )}:=\max \{S_{0},S_{1},S_{2},\dots ,S_{\eta }\}$ belong to the class of consistently varying distributions. In our consideration the random variables $\{\xi _{1},\xi _{2},\dots \}$ are not necessarily identically distributed.
We obtain a Lundberg-type inequality in the case of an inhomogeneous renewal risk model. We consider the model with independent, but not necessarily identically distributed, claim sizes and the interoccurrence times. In order to prove the main theorem, we first formulate and prove an auxiliary lemma on large values of a sum of random variables asymptotically drifted in the negative direction.