Hi, I'm confused in generating power law random numbers. Now I'm using the following code for generating power law random numbers:
k = rand; power_law = k^(1/-(alpha+1)); where 0 < alpha < 2.
I don't know if I'm following the correct way or not. Kindly help me.
Best Answer