in reply to A few questions

Note that $$ by itself is the process ID of your current process. Usefull in combination with other semi-random numbers for better randomization routines, and for Inter-process communication.