You already mentioned Autonumber() and Hash() functions. Autonumber() will not consume much memory.
So what are your specific concerns?
If you don't know how to use Autonumber() or Hash() functions, have you already looked in the HELP, the reference manual and searched the forum for these functions?