It is a shifted gamma. (X-1) is a gamma distribution with parameters a and b, so generate from gamma(a,b) and add 1 to it. To generate gamma several methods are available, you have R-program also.
You may use Metropolis-Hasting (MH) method for sample generation. This is a particular method of MCMC, and you have no need to compute normalising constant in this manner. I hope this work excellent with your pdf. For details about MH, you also read the link given below.
Easily define a function as below, then generate a set of random numbers form a desired distribution within your variable(s) domain(s). later on, coerce the generated variables to the function.