You will be given a definition of a task first, then some input of the task.
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.

[383, 303, 323, 320, 460, 395, 122, 106, 313, 124, 236, 125, 257, 433, 286, 270, 464, 396, 162, 347]
Output:
358