
On entry,  ${\mathbf{M}}<1$, 
or  ${\mathbf{M}}>{\mathbf{N}}$. 
On entry,  STATE vector was not initialized or has been corrupted. 
(a)  set ${\mathbf{IPOP}}\left(\mathit{i}\right)=\mathit{i}$, for $\mathit{i}=1,2,\dots ,n$; 
(b)  use G05NDF to take a sample from IPOP and put it into ISAMPL; 
(c)  use the contents of ISAMPL as a set of indices to access the relevant vector or matrix. 