The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math1
Class: None
Declaration: function CRandom (loc, wid: double): double;

The function CRandom returns a Cauchy distributed random number. The parameters loc and wid specify the location and the width of the distribution.

Hint: CRandom is based on the built in random generator of Delphi. So any flaw in this random generator will also emerge in the distribution of values of CRandom.

Last Update: 2012-Oct-20