uploading the C code to get random sequences