A random environment is modelled by an arbitrary stochastic process, the future of which is described by a σ-algebra. Renewal processes and alternating renewal processes are defined in this environment by considering the conditional distributions of random variables generated by the processes with respect to the σ-algebra. Generalizations of several of the standard limit theorems of renewal theory are derived.