An array of integers of size n. I need to generate a random permutation of the array, given a function rand\_n() that returns an integer between 1 and n, both inclusive, with equal probability. I know about the random function in java but I want to implement it using C.