Generating random numbers, writing in C file, exeucuting file, getting result