g05sn generates a vector of pseudorandom numbers taken from a Student's -distribution with degrees of freedom.
public static void g05sn( n, df, G05..::.G05State g05state,  x, out ifail )
|Visual Basic (Declaration)|
Public Shared Sub g05sn ( _ n As , _ df As , _ g05state As G05..::.G05State, _ x As (), _ < > ByRef ifail As _ )
public: static void g05sn( n, df, G05..::.G05State^ g05state, array< >^ x, [ ] % ifail )
static member g05sn : n: * df: * g05state:G05..::.G05State * x:  * ifail: byref -> unit
On entry: , the number of pseudorandom numbers to be generated.Constraint: .
On entry: , the number of degrees of freedom of the distribution.Constraint: .
- Type: array<
>()An array of size [n]On exit: the pseudorandom numbers from the specified Student's -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, g05state vector was not initialized or has been corrupted.
The time taken by g05sn increases with .
This example prints five pseudorandom numbers from a Student's -distribution with five degrees of freedom, generated by a single call to g05sn, after initialization by the state constructor (for a repeatable sequence).