This command will randomly select a number between 1 and 50, and then use that number to generate a command that will run a python script with the input file being the number selected plus ".csv".
shuf -i 1-50 -n 1 | xargs -I {} echo "python generate_run.py --input_file={}.csv" | sh