The range is the bounds on y. If 0<x<10, since this is a function that increases as x increases, the maximum y value will be by x=10 and the minimum will be by x=0.
Plugging these values of x into the function gives y=(10)^2-5=100-5=95 and y=0-5=-5
However, since x can't actually equal 0 and 10, y cannot be exactly equal to - 5 and 95. Therefore, the range is -5<y<95