Fills the destination array with uniformly or normally distributed random numbers.

C# | Visual Basic | Visual C++ |
public static void cvRandArr( ref ulong rng, IntPtr arr, RAND_TYPE dist_type, MCvScalar param1, MCvScalar param2 )
Public Shared Sub cvRandArr ( _ ByRef rng As ULong, _ arr As IntPtr, _ dist_type As RAND_TYPE, _ param1 As MCvScalar, _ param2 As MCvScalar _ )
public: static void cvRandArr( unsigned long long% rng, IntPtr arr, RAND_TYPE dist_type, MCvScalar param1, MCvScalar param2 )

- rng ( UInt64 %)
- the seed for the random number generator
- arr (IntPtr)
- The destination array
- dist_type (RAND_TYPE)
- Distribution type
- param1 (MCvScalar)
- The first parameter of distribution. In case of uniform distribution it is the inclusive lower boundary of random numbers range. In case of normal distribution it is the mean value of random numbers
- param2 (MCvScalar)
- The second parameter of distribution. In case of uniform distribution it is the exclusive upper boundary of random numbers range. In case of normal distribution it is the standard deviation of random numbers