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....



Random


Unit:SDL_statis
Class: TRandGen
Declaration: property Random: double;

The read-only property Random returns a random number within the range LowBorder... HighBorder using the probability distribution defined by the array property Probability.

The figure below shows the result of 20000 calls to Random with a bimodal distribution defined by 500 reference points. The returned random numbers are indicated by the gray histogram. The blue line shows the underlying probability distribution.



Last Update: 2012-Oct-20