Fill vector with pseudo random numbers between 0 and 1.
Fill vector with value randomly picked from the given vectorbase object
BOOL Uniform( int nSize, int nSeed = 0 )
BOOL Uniform( int nSize, vectorbase & v, int nFillFrom = -1 )
Returns TRUE on success or FALSE on failure.
TRUE on success, otherwise FALSE
// Declare a vector of size 20
// Fill with random numbers
BOOL bRet = vec.Uniform(vec.GetSize());
// Output the values
for( int ii=0; ii<vec.GetSize(); ii++ )
printf("vec[%d]=%f\n", ii, vec[ii])
Fill vector with pseudo random numbers between 0 and 1 from a uniform distribution. This method is similar to the LabTalk Uniform function. If this method is used on an integer vector, then the resulting vector will be filled with 0s.