Analyze previous numbers in number stream

This might sound like a weird problem, but its one I run into quite frequently. I want to be able to pull out previous numbers in a stream of Ints/floats. Like say I hooked up a bang to a [random] and hit it a few times, how would I go about looking at the number I banged directly before the current value.

What I am looking for is basically a [print] consisting of numbers I can pull up and use again. Has anyone done this?
The answer is probably incredibly simple, so I apologize if this is a rather noobish question.