I have a folder with multiple .dat files, and I\'m trying to calculate the mean of them, in a loop, by summing randomly chosen files. This is how the code is as of now: