Function opencv::core::randu

source ·
pub fn randu(
    dst: &mut impl ToInputOutputArray,
    low: &impl ToInputArray,
    high: &impl ToInputArray
) -> Result<()>
Expand description

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

Non-template variant of the function fills the matrix dst with uniformly-distributed random numbers from the specified range: block formula

§Parameters

  • dst: output array of random numbers; the array must be pre-allocated.
  • low: inclusive lower boundary of the generated random numbers.
  • high: exclusive upper boundary of the generated random numbers.

§See also

RNG, randn, theRNG