g05sa generates a vector of pseudorandom numbers taken from a uniform distribution between and .
public static void g05sa( n, G05..::.G05State g05state,  x, out ifail )
|Visual Basic (Declaration)|
Public Shared Sub g05sa ( _ n As , _ g05state As G05..::.G05State, _ x As (), _ < > ByRef ifail As _ )
public: static void g05sa( n, G05..::.G05State^ g05state, array< >^ x, [ ] % ifail )
static member g05sa : n: * g05state:G05..::.G05State * x:  * ifail: byref -> unit
On entry: , the number of pseudorandom numbers to be generated.Constraint: .
- Type: array<
>()An array of size [n]On exit: the pseudorandom numbers from a uniform distribution over the half closed interval .
On exit: unless the method detects an error (see [Error Indicators and Warnings]).
g05sa generates values from a uniform distribution over the half closed interval .
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.
This example prints the first five pseudorandom numbers from a uniform distribution between and , generated by g05sa after initialization by the state constructor (for a repeatable sequence).