Introduction to THE SAMREC AND SAMVAL CODES