This is done by knowing the shape and nature of the function in question. Also knowing the domain will be helpful. Do you have an example of a function you require the range for?

example

(0,5) means all numbers between 0 and 5 but not including 0 and 5.

[0,5] means all numbers between 0 and 5 including 0 and 5.