You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > RandUniform Method > TMtxVec.RandUniform Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.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: TMtx; begin CreateIt(a); try a.Size(100,False); a.RandUniform(0,5); finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!