Dew MtxVec NET
TRngStream.RandomGeometric Method
Summary
Generates an array of integer samples distributed Geometrically.

Class
TRngStream

Declaration
Procedure RandomGeometric(Dst: TMtxVec; p: double);

Description
Returns random numbers distributed according to the Geometric probability density function (PDF) as defined here GeometricPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property.

Copyright 2008 Dew Research
http://www.dewresearch.com