Question: python please Write a function to generate a list of random integers, named generateValues, that has three parameters: (1) low, the lowest possible random value


python please
Write a function to generate a list of random integers, named generateValues, that has three parameters: (1) low, the lowest possible random value (2) high, the highest possible random value, (3) count, the number of random integers to be generated. The function generateValues aggregates the generated integers into a list and returns it. You might want to use the following template as your starting point: # Write a function to generate a list of random integers. #It has three parameters: (1) low, the lowest possible random value # (2) high, the highest possible random value, # (3) count, the number of random integers to be generated. # The function aggregates the generated integers into a list and return it. import random def generateValues (low, high, count): Create and return a list of random integers Parameters: low the lowest possible random value high the highest possible random value count the amount of values in the list Return: list of random integers in the specified range II II II # TODO: use a loop to create desired random numbers # and then return them as a list pass def main(): random_nums = generateValues(2, 100, 15) print(random_nums) main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
