I guess the correct answer is rehearsal.
Randy agreed to join a biology study group. When the study group leader gave him her phone number, he had nothing with which to record the number. So Randy repeated the number to himself several times until he found a pen to write the number on his hand. The process Randy used to encode the number into memory is called rehearsal.