addded rand.c a test for prog7 which accesses memory in a random way