The Endeavor is one of my favorite non aviation blog. Daily posts on this blog, which make there way to my email everyday, are the randomness that I have learned to like.
When John D Cook, introduced Julia in this blog post and generously shared the random number generator codes in Julia for probability distribution, I wanted to have them in Fortran.
I know, with the legacy of Fortran this functions might have already been defined, but hey I wanted to keep then in a module that I might use someday. So I just translated them in fortran and here’s the result.
The code can be found here: Fortran module for non-uniform random number generation.
The random number generators are for the following probability distributions:
- Beta
- Cauchy
- Chi square
- Exponential
- Inverse gamma
- Laplace (double exponential)
- Normal
- Student t
- Uniform
- Weibull
You can download the fortran module on random distribution from here.
Have you ever thought about adding a little bit more than just your articles?
I mean, what you say is fundamental and all. However think of if you added
some great visuals or video clips to give your posts more, “pop”!
Your content is excellent but with images and videos, this blog could
undeniably be one of the best in its niche. Fantastic blog!
LikeLike
Thanks for the kind words. Yes I think of adding the “pop” but this blog is an effort after work and other personal commitment, so I just add whatever little I can in the limited time. Maybe someday, I will get more time to add more.
Thanks for reading and commenting.
LikeLike
Fabulous, what a blog it is! This website gives helpful
facts to us, keep it up.
LikeLike
Thank you!!!
LikeLike
Pingback: Top 5 posts | SukhbinderSingh.com
Is there any code available for uniform random number generator in 64 bit or not?
regards
LikeLike
Hi Surender
I am sure it is available somewhere on the internet. Please check netlib.org
Thanks
LikeLike