You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > RandUniform Method > Matrix.RandUniform Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.RandUniform Method ()

The pseudo random sample generator with continuous uniform distribution.

Pascal
function RandUniform: TMtxVec; overload;

Fills the calling object values with pseudo random samples following the continuous uniform distribution using the parameters Low = 0, High = 1. The value for the seed is obtained from the CPU clock.

var a: Matrix; begin a.Size(10,10,False); a.RandUniform(0,5); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!