Given the following cumulative distribution function (CDF) for a continuous variable with a range from -3 to 4, develop a random variate generator for the variable by using the inverse transform method.