Algorithm conversion to Matlab Code

6 views (last 30 days)
Mar One
Mar One on 21 May 2022
Answered: Walter Roberson on 22 May 2022
Hello, i have this ziggurat algorithm that i wish to convert to a matlab code if someone would know the correct matlab code for it

Answers (2)

Steven Lord
Steven Lord on 21 May 2022
See this post on Cleve Moler's blog.
  2 Comments
Mar One
Mar One on 21 May 2022
i need the matlab code for the algorithm if posible
Walter Roberson
Walter Roberson on 22 May 2022
Calling randn() is the matlab code that implements the algorithm.

Sign in to comment.


Walter Roberson
Walter Roberson on 22 May 2022

Categories

Find more on Random Number Generation in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!