Random number memorization and how to do it