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.

[299, 373, 468, 457, 216, 28, 265, 329, 258, 487, 91, 84, 219, 263, 367, 32, 391, 294, 365, 227]
Output:
459