This function generates a random walk using a stable distribution. It takes three parameters: the number of steps in the walk n, and the parameters mu and sigma of the stable distribution.