MATLAB: Generating integer random numbers from power-law distribution random number generator Is there a code to generate integer random numbers through power-law distribution of the form p(x)=x^-(alpha+1)? thanks in advance Best Answer Try this: RANDRAW Related SolutionsMATLAB: Are the logit-normal distribution is implemented in MATLAB Try cumsum() and use Inverse Transform Sampling.Also see RANDRAW to see how the author generates dozens of distributions. MATLAB: How to generate power-law random numbers What is the probability density function for the power law distribution you use ?p(x)=(alpha-1)*x^(-alpha)?In this case, usek=rand ;power_law = (1-k)^(1/(-alpha+1))Best wishesTorsten. Related QuestionHow can I convert a decimal to an integer
Best Answer