g05sm generates a vector of pseudorandom numbers from a log-normal distribution with parameters and .
public static void g05sm( n, xmu, var, G05..::.G05State g05state,  x, out ifail )
|Visual Basic (Declaration)|
Public Shared Sub g05sm ( _ n As , _ xmu As , _ var As , _ g05state As G05..::.G05State, _ x As (), _ < > ByRef ifail As _ )
public: static void g05sm( n, xmu, var, G05..::.G05State^ g05state, array< >^ x, [ ] % ifail )
static member g05sm : n: * xmu: * var: * g05state:G05..::.G05State * x:  * ifail: byref -> unit
On entry: , the number of pseudorandom numbers to be generated.Constraint: .
On entry: , the mean of the distribution of .
On entry: , the variance of the distribution of .Constraint: .
- Type: array<
>()An array of size [n]On exit: the pseudorandom numbers from the specified log-normal distribution.
On exit: unless the method detects an error (see [Error Indicators and Warnings]).
Errors or warnings detected by the method:
Some error messages may refer to parameters that are dropped from this interface (lstate) In these cases, an error in another parameter has usually caused an incorrect value to be inferred.
On entry, unable to calculate as xmu is too large.
On entry, g05state vector was not initialized or has been corrupted.
This example prints five pseudorandom numbers from a log-normal distribution with mean and variance , generated by a single call to g05sm, after initialization by the state constructor (for a repeatable sequence).