I'm looking to use Python to generate some sample data.
I'd like to build a function which takes an upper bound, lower bound, and size parameters. It would then return a list of the provided size that contains floats between the upper and lower bound that form a normal distribution.
def generate_normal_dist_samples(lower_bound, upper_bound, size):
# Generate the data here
Can this be done using numpy.random.normal?
An example is to generate employee salary test data. If we know the lower_bound is 50K, and the upper_bound is 500K, how can I generate sample salaries that are between these two, but when summarized form a normal distribution?