I'm writing some code to find patterns in pseudo-random numbers. I would like to print these numbers as they are added to a list. How do I get the last generated 'random' int? I would use this value to print it to the console. I've looked through the documentation, but can't find that in the documentation.
Here is some code:
pseudo_random_list += str(random.randrange(0, 9))
# [Snippet to print last integer generated]
(pseudo_random_list
is a string.)
I would also not like to creat temp variables. (Memory isn't unlimited)