Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generating random numbers for set distribution

807591Jun 13 2008 — edited Jun 13 2008
Hey, I have been having a problem with a science project I am working on and was hoping someone might be able to help me. What I need is a set of random numbers that follow a power law distribution, similar to the gaussian distribution you get from the nextGaussian method for the random class, but obviously with a different shape. Is there a quick and dirty way to do this or can someone reccomend a full algorithm to follow?

Thanks

Chris
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2008
Added on Jun 13 2008
4 comments
199 views