random intialization for MPI code