use either lrand48,rand, or time, depending on what the system has.