randu function

Mat randu(
  1. InputOutputArray dst,
  2. Scalar low,
  3. Scalar high
)

RandU Generates a single uniformly-distributed random number or an array of random numbers.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0

Implementation

Mat randu(InputOutputArray dst, Scalar low, Scalar high) {
  cvRun(() => cffi.RandU(dst.ref, low.ref, high.ref));
  return dst;
}