Definition: In this task, you are given a list of integers you need to calculate and return the range of the integers which is the difference between maximum and minimum element in the list.
Input: [87, 126, 334, 74, 100, 167, 496, 271, 345, 253, 387, 130, 244, 155, 328, 193, 252, 235, 384, 142]
Output:
422