#Jelly, 2 bytes
rP
Takes two numbers as command line arguments. Try it online.
Note that this is inclusive range. For the cost of a byte (3 bytes), we can make this exclusive:
’rP
Try it online. Note that the arguments must be given in the order b a
for this version.
##Explanation
###Inclusive
a rP b
r dyadic atom, creates inclusive range between a and b
P computes product of the list
###Exclusive
b ’rP a
’ decrement b (by default, monadic atoms in dyadic chains operate on the left argument)
r range
P product