How can I write a function that takes a parameter for samples and a mean. Within the function a for loop iterates 10 times each time it samples the number of records using the p